Thread overview | |||||
---|---|---|---|---|---|
|
January 02, 2020 how to get current timestamp? | ||||
---|---|---|---|---|
| ||||
Is there any built-in method returning current timestamp like doing it in python like: time.time() which returns something like 1577990478.4675508? |
January 02, 2020 Re: how to get current timestamp? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ferhat Kurtulmuş | On Thursday, 2 January 2020 at 18:41:59 UTC, Ferhat Kurtulmuş wrote: > Is there any built-in method returning current timestamp like doing it in python like: time.time() which returns something like 1577990478.4675508? I use import std.datetime; Clock.currTime().toISOExtString() |
January 02, 2020 Re: how to get current timestamp? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bachmeier | On Thursday, 2 January 2020 at 18:56:37 UTC, bachmeier wrote:
> On Thursday, 2 January 2020 at 18:41:59 UTC, Ferhat Kurtulmuş wrote:
>> Is there any built-in method returning current timestamp like doing it in python like: time.time() which returns something like 1577990478.4675508?
>
> I use
>
> import std.datetime;
> Clock.currTime().toISOExtString()
Thank you. However, UnixTime is what I was looking for.
Clock.currTime.toUnixTime()
|
Copyright © 1999-2021 by the D Language Foundation