Ric - thanks for this.

If I may make a suggestion, in my own "TSDiff", I find it handy to return
the time difference in seconds as well as in the full time-stamp form as
this latter one has unavoidable ambiguity (as months and years are of
variable length).

For instance,

   2010 10 21 10 50 25.741 TSDiff 2010 10 21 9 0 0  NB. How long I've been
at work
+--------+--------------------+
|6625.741|0 0 0 1 50 25.740997|                     NB. 6625 s = 1h 50m 25s
+--------+--------------------+

I don't think I've ever actually used the 1{result in practice.  For what I
do, I'm usually interested in the number of seconds.  Perhaps a more
succinct alternative, maybe "tsDiffS", would return only seconds.

Regards,

Devon

On Thu, Oct 21, 2010 at 1:03 AM, Alex Rufon <[email protected]>wrote:

> Hi Ric,
>
> Thanks for the update. Much appreciated.
>
> r/Alex
>
> -----Original Message-----
> From: [email protected] [mailto:
> [email protected]] On Behalf Of Sherlock, Ric
> Sent: Thursday, October 21, 2010 12:13 PM
> To: Programming forum
> Subject: [Jprogramming] types/datetime addon released
>
> The types/datetime addon has been published on JAL.
> It basically extends the current system verbs from the dates.ijs script to
> handle times as well as dates.
>
> http://www.jsoftware.com/jwiki/Addons/types/datetime
>
> There is still room for improvement and extension. Especially reading dates
> in custom string formats.
>
> Any suggestions welcome.
>
> Ric
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to