[your code here]

Hello hello at world.com
Sat May 4 03:15:59 UTC 2019


auto today()
{
     import std.datetime;
     auto d = cast(DateTime) Clock.currTime();
     import std.format: format;
     return format("%04d/%02d/%02d", d.year, d.month, d.day);
}

void main()
{
     import std.stdio;
     today.writeln;
}


More information about the Digitalmars-d mailing list