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
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
>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
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
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
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