Re: [Jprogramming] datetime utc and portability

2013-10-22 Thread Thomas Costigliola
ells it to return localtime, systemtime, or utctime would > seem the most useful. > > From: Jo van Schalkwyk > To: programm...@jsoftware.com > Sent: Sunday, October 20, 2013 1:30:10 AM > Subject: Re: [Jprogramming] datetime utc and portability > > > From the Linux comman

Re: [Jprogramming] datetime utc and portability

2013-10-20 Thread Pascal Jasmin
alkwyk To: programm...@jsoftware.com Sent: Sunday, October 20, 2013 1:30:10 AM Subject: Re: [Jprogramming] datetime utc and portability >From the Linux command line try the following for UNIX time: date +%s The C header time.h is readily available e.g. here: http://pubs.opengroup.org/online

Re: [Jprogramming] datetime utc and portability

2013-10-19 Thread Jo van Schalkwyk
>From the Linux command line try the following for UNIX time: date +%s The C header time.h is readily available e.g. here: http://pubs.opengroup.org/onlinepubs/009696699/basedefs/time.h.html Be a bit careful with UNIX time (and UTC generally), which is the number of seconds since January 1 1970

Re: [Jprogramming] datetime utc and portability

2013-10-19 Thread bill lam
Under linux, the cmd "date -u" will give time in utc. Вс, 20 окт 2013, Ric Tikkanz писал(а): > I agree it would be great to make these additions to the addon > cross-platform. I'm also clueless on the best ways to do this outside > Windows (which is why they aren't there already ;)) > Anybody have

Re: [Jprogramming] datetime utc and portability

2013-10-19 Thread Ric Sherlock
I agree it would be great to make these additions to the addon cross-platform. I'm also clueless on the best ways to do this outside Windows (which is why they aren't there already ;)) Anybody have any advice? On Sun, Oct 20, 2013 at 1:37 PM, Pascal Jasmin wrote: > adding 4 functions to this fil

[Jprogramming] datetime utc and portability

2013-10-19 Thread Pascal Jasmin
adding 4 functions to this file: ~addons/types/datetime/datetime.ijs Now_z_ =: 6!:0 utcBIAS_z_ =: 0,~ >1{ getTimeZoneInfo_rgsdatetime_ '' utc_z_ =: tsPlus&utcBIAS  utcnow_z_ =: utc@:Now     utcBIAS 300 0 this gives a utc adjusted current local time:    utcnow '' 2013 10 20 1 9 21.346 utcBIAS