The phrases page:

 http://www.jsoftware.com/help/phrases/date_time.htm

should be updated because some of the example phrases
do not work in January.

Replacing all instances of the primative ": with this:

(all on one line, problem with Yahoo! Mail)
ts2string =. [: ;:^:_1 [:
((]`([:'0'&,]))@.(1:=#)@":&.>) [: <"(0) ]

might solve the problem.

i.e.

NB. example time stamp that can occur in January
        ts =. 2008 1 1 21 39 5.343              
        m5=: ('/'"_) 4 7} ":
        m5 ts   NB. this fails but is in the J phrases
2008/1 / 21 39 5.343        

   ts2string =. [: ;:^:_1 [:
((]`([:'0'&,]))@.(1:=#)@":&.>) [: <"(0) ]
   ts2string ts
2008 01 01 21 39 5.343
   #ts2string ts
22
   m5_new=: ('/'"_) 4 7} ts2string
   m5_new ts    NB. succeeds            
2008/01/01 21 39 5.343




      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to