The test (ts -: [EMAIL PROTECTED]:) 'YYYY-MM-DD hh:mm:ss.sss'
will fail if the time is updated between the reads from the clock. (I don't know if that's possible in the implementation). Henry Rich > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Roger Hui > Sent: Tuesday, October 30, 2007 4:43 PM > To: Programming forum > Subject: Re: [Jprogramming] Current time: behaviour > > So you want to be a language implementer? See: > http://www.jsoftware.com/jwiki/Essays/Timestamp_Extension > > > > ----- Original Message ----- > From: Roger Hui <[EMAIL PROTECTED]> > Date: Tuesday, October 30, 2007 11:25 > Subject: Re: [Jprogramming] Current time: behaviour > To: Programming forum <[email protected]> > > > That's a nice idea. The function, not the dotage. > > > > > > > > ----- Original Message ----- > > From: Devon McCormick <[EMAIL PROTECTED]> > > Date: Tuesday, October 30, 2007 11:10 > > Subject: Re: [Jprogramming] Current time: behaviour > > To: Programming forum <[email protected]> > > > > > A nice extension to "6!:0" would be a format string, e.g. > > > something like > > > > > > 6!:0 'MM/DD/YY hh:mm:ss' > > > 10/30/07 14:06:13 > > > > > > As has been mentioned before, restricting the argument now and > > making the > > > above construction an error leaves the door open for a compatible > > > enhancement like this, perhaps when Roger is in his dotage. > > > > > > On 10/30/07, Randy MacDonald <[EMAIL PROTECTED]> wrote: > > > > > > > > ...and I fail to see what quality of foreigns justifies > the domain > > > > restriction. > ---------------------------------------------------------------------- > For information about J forums see > http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
