Documentation Improvement Initiative

jmh530 john.michael.hall at gmail.com
Fri May 8 16:43:19 UTC 2020


On Friday, 8 May 2020 at 15:34:43 UTC, Guillaume Piolat wrote:
> [snip]
>
> Recently I spent more than 15 minutes trying to **get the Date 
> of today** with std.datetime.
>
>
> The answer is:
>
>
>     import std.datetime;
>     Date today()
>     {
>         SysTime time = Clock.currTime();
>         return Date(time.year, time.month, time.day);
>     }
> [snip]

I think this should be in phobos, regardless of the documentation 
improvement.





More information about the Digitalmars-d mailing list