d_time2FILETIME

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Apr 10 07:07:20 PDT 2009


Hello,

I want to port the function setFileTimes available in Phobos/Posix to 
Windows. Does anyone know of a simple way to convert a d_time value to a 
FILETIME value? d_time is Ticks since 1-1-1970 and FILETIME contains 
quanta of 100-nanoseconds since 1-1-1601. So there's only some shifting 
and scaling involved, but the shifting constant is tricky :o).

Andrei



More information about the Digitalmars-d mailing list