[your code here]

Russel Winder russel at winder.org.uk
Sat May 4 11:17:57 UTC 2019


On Sat, 2019-05-04 at 08:06 +0000, Bastiaan Veelo via Digitalmars-d wrote:
> […]
> 
> void main()
> {
>      import std.datetime, std.stdio;
>      auto d = Clock.currTime();
>      writefln("%04d/%02d/%02d", d.year, d.month, d.day);
> }

"%04d-%02d-%02d" for ISO8601 compliance.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20190504/1ac6f028/attachment.sig>


More information about the Digitalmars-d mailing list