www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to get current timestamp?

reply Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
Is there any built-in method returning current timestamp like 
doing it in python like: time.time() which returns something like 
1577990478.4675508?
Jan 02 2020
parent reply bachmeier <no spam.net> writes:
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()
Jan 02 2020
parent Ferhat =?UTF-8?B?S3VydHVsbXXFnw==?= <aferust gmail.com> writes:
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()
Jan 02 2020