[OctDev] doc wrong in weekday.m

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[OctDev] doc wrong in weekday.m

Deepak Goel

Forge's weekday fcn seems to be consistent with matlab.  Today is
Tuesday.


 octave:14> date
 ans = 27-Sep-2005
 octave:17> [d s]=weekday(now)
 d = 3
 s = Tue


however, the doc seems wrong:

     Takes a date (in either datenum format or a string that datenum
     can parse) and returns the number for the day of the week (0 =
     "Sun", 1 = "Mon", ... , "Sat")


The doc says that Tue is 2, whereas it is really 3, both for the fcn,
as well as in matlab.

(Attached is a also diff fix and changelog entry.)



Sincerely,

DG

weekdaydiff (635 bytes) Download Attachment
ChangeLog (99 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [OctDev] doc wrong in weekday.m

Paul Kienzle-3

On Sep 27, 2005, at 10:45 AM, Deepak Goel wrote:

>
> Forge's weekday fcn seems to be consistent with matlab.  Today is
> Tuesday.
>
>
>  octave:14> date
>  ans = 27-Sep-2005
>  octave:17> [d s]=weekday(now)
>  d = 3
>  s = Tue
>
>
> however, the doc seems wrong:
>
>      Takes a date (in either datenum format or a string that datenum
>      can parse) and returns the number for the day of the week (0 =
>      "Sun", 1 = "Mon", ... , "Sat")
>
>
> The doc says that Tue is 2, whereas it is really 3, both for the fcn,
> as well as in matlab.
>
> (Attached is a also diff fix and changelog entry.)
>
>


Applied.

Thanks,

        -Paul



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Octave-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/octave-dev