On Wed, 17 Nov 2010 22:18:09 -0800, Jonathan M Davis wrote: > Structs can't have default constructors, so it's impossible to do that. > In the case of std.datetime, the way to get the current time is > Clock.currTime(), and since SysTime has a toString() method, you can > just print it. So, you can do writeln(Clock.currTime().toString()); It > has other types of methods of converting to and from strings if you want > a specific format, but toString() works just fine if you aren't picky > about the format (it's also the most readable of the various formats). > > > - Jonathan M Davis
Ah! It was Clock.currTime() that I had not spotted. Thanks Jonathan
