[squeak-dev] 64-bit Unix time to TimeStamp method?

Bert Freudenberg bert at freudenbergs.de
Thu Feb 11 19:08:10 UTC 2010

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 -

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100211/e652f653/attachment.htm

More information about the Squeak-dev mailing list