On Wednesday, 16 January 2013 at 14:15:46 UTC, n00b wrote:
Nevermind, found it myself.
SysTime* sys = new SysTime(standardTime, UTC());
sys.hour;



Le 16/01/2013 08:07, n00b a écrit :
Hello, I'm kinda ashamed to ask that here, but std.datetime
documentation is so complex... I only want to get hour/minute from a
t_time (no timezone).
I'm moving to D2, the equivalent code in D1 was:

std.date.Date date;
date.parse(std.date.toUTCString(time));
date.hour;

This is a better way, that doesn't allocate memory:

auto clock = Clock.currTime();
writeln(clock.hour);

:)

Reply via email to