[Jprogramming] getdate

Randy MacDonald ramacd at nbnet.nb.ca
Wed Sep 2 19:38:55 HKT 2009


Hello Raul;

I'll assume that your session example shows current behavior.  If that 
is true, would the following show desired behaviour?

   require 'dates'
   getdate 'March 7 2009 7:30pm EST'  NB. GMT -5 
2009 3 7 19 30 _5

   getdate 'March 7 2009 7:30pm'
2009 3 7 19 30
   getdate 'March 7 2009'
2009 3 7



Raul Miller wrote:
> J's 'dates' code could use some additional support for times.
>
> For example:
>
>    NB. http://rosettacode.org/wiki/Date_Manipulation
>    require 'dates'
>    getdate 'March 7 2009 7:30pm EST'
>
>    getdate 'March 7 2009 7:30pm'
>
>    getdate 'March 7 2009'
> 2009 3 7
>
>   

-- 
------------------------------------------------------------------------
|\/| Randy A MacDonald       | APL: If you can say it, it's done.. (ram)
|/\| ramacd <at> nbnet.nb.ca |
|\ |                         | The only real problem with APL is that
BSc(Math) UNBF'83            | it is "still ahead of its time."
Sapere Aude                  |     - Morten Kromberg
Natural Born APL'er          |
-----------------------------------------------------(INTP)----{ gnat }-





More information about the Programming mailing list