Populating Date struct from d_time value

Steve Teale steve.teale at britseyeview.com
Sun Mar 15 06:40:22 PDT 2009


What is the recommended way of populating a std.date Date struct from a d_time value returned by getUTCtime()?

I'm probably being very dense, but it seems to me that at present I have to convert the d_time value to a formatted date string, and then parse that. This seems very inefficient.

Also, Date has a weekday member, but no year day, and year days are quite widely used.



More information about the Digitalmars-d mailing list