octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More time function compatibility help


From: Michael D Godfrey
Subject: Re: More time function compatibility help
Date: Sat, 05 Nov 2011 16:11:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

On 11/05/2011 09:31 AM, Rik wrote:
datestr (now (),'YyYy')
datestr (now (),'YYYY')
datestr (now, 'DDDD mmm dd')
datestr (now, 'hh:ss')
datevec ("32:123", "MM:FFF")
                                           < M A T L A B (R) >
                                 Copyright 1984-2009 The MathWorks, Inc.
                               Version 7.9.0.529 (R2009b) 64-bit (glnxa64)
                                             August 12, 2009

 
  To get started, type one of these: helpwin, helpdesk, or demo.
  For product information, visit www.mathworks.com.
 
>> datestr (now (),'YyYy')

ans =

2011

>> datestr (now (),'YYYY')

ans =

2011

>> datestr (now, 'DDDD mmm dd')

ans =

Saturday Nov 05

>> datestr (now, 'hh:ss')

ans =

hh:56

>> datevec ("32:123", "MM:FFF")
??? datevec ("32:123", "MM:FFF")
             |
Error: The input character is not valid in MATLAB statements or expressions.
 
>> datevec ('32:123', 'MM:FFF')

ans =

   1.0e+03 *

    2.0110    0.0010    0.0010         0    0.0320    0.0001

>>
=====================================
Michael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]