64-bit Unix time to TimeStamp method?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

64-bit Unix time to TimeStamp method?

John Chludzinski
In an effort not to re-invent the wheel, is there a package with a method, presumably in ByteArray, that would convert Unix time (64-bit) to an instance of TimeStamp?   ---John 


Reply | Threaded
Open this post in threaded view
|

Re: 64-bit Unix time to TimeStamp method?

Bert Freudenberg
On 11.02.2010, at 09:55, John Chludzinski wrote:
In an effort not to re-invent the wheel, is there a package with a method, presumably in ByteArray, that would convert Unix time (64-bit) to an instance of TimeStamp?   ---John 

Assuming "aUnixTime" is an Integer you can use

(DateAndTime unixEpoch + aUnixTime seconds) asTimeStamp

- Bert -




Reply | Threaded
Open this post in threaded view
|

Re: 64-bit Unix time to TimeStamp method?

John Chludzinski
In reply to this post by John Chludzinski
> Assuming "aUnixTime" is an Integer you can use

> (DateAndTime unixEpoch + aUnixTime seconds) asTimeStamp

> - Bert -

There is no DateAndTime>>unixEpoch in my Croquet image.  Is this to be found elsewhere?  ---John


Reply | Threaded
Open this post in threaded view
|

Re: 64-bit Unix time to TimeStamp method?

Bert Freudenberg
On 12.02.2010, at 08:05, John Chludzinski wrote:
> Assuming "aUnixTime" is an Integer you can use

> (DateAndTime unixEpoch + aUnixTime seconds) asTimeStamp

> - Bert -

There is no DateAndTime>>unixEpoch in my Croquet image.  Is this to be found elsewhere?  ---John

Was added to the trunk recently.

- Bert -