Time from timestamp?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 30 15:50:53 PST 2015


On Fri, 30 Jan 2015 23:42:04 +0000, Chris Williams wrote:

> On Friday, 30 January 2015 at 22:38:21 UTC, Chris Williams wrote:
>> On Friday, 30 January 2015 at 22:22:27 UTC, Rikki Cattermole wrote:
>>> On a slightly related note, I have code for UTC+0 to unix time stamp.
>>> https://github.com/Devisualization/util/blob/
b9ab5758e755c4e33832ac4aed0a5d7f2c728faf/source/core/devisualization/util/
core/time.d
>>
>> Unix timestamps can be negative, so you should probably be using longs
>> instead of ulongs.
> 
> Yup, there was a world before January 1st, 1970.

not for unix timestamps. please, stop that, unix timestamp was not 
designed to present any dates before 1970. "negative timestamp" is a bug 
in code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150130/eb2930ce/attachment.sig>


More information about the Digitalmars-d-learn mailing list