Date manipulation: Difference between revisions

m
(J)
Line 827:
deltaT=: (1 tsrep 0)&([ + -@#@[ {. ])</lang>
 
This parser assumes that numeric date information appears to the left of time information, that month name is spelled out in full and that time zone may be ignored. (Alternate date representations are straightforward to implement but turn this into a somewhat open-ended problem).
 
Note that J's tsrep library routine converts from timestamp to milliseconds and 1 tsrep coverts from milliseconds to timestamp.
6,962

edits