[LUGOS] Windows filetime -> time_t
Jure Koren
idiots at gmail.com
Mon Aug 2 20:18:50 CEST 2004
On Mon, 2 Aug 2004 15:25:19 +0200 , Urban Purkat <urban.purkat at hermes.si> wrote:
> UNIX maintains time in the form of a time_t, which represents
> seconds since midnight, January 1, 1970, UTC.
> Win32 maintains time primarily in the form of a FILETIME, which
> represents 100-nanosecond intervals since January 1, 1601, UTC.
No, potem je trivialno, ce je oboje UTC.
> Malo me pa se bega: kaj je to filetime in systemtime?
> A se sploh rabim ozirat na systemtime?
Ne, po moje je systemtime analogen localtime na unixih. Vse kar moras
izracunat je time_t po tisti formuli ki jo je nasel google in zraven
dodat UTC (skratka, pretvorit moras dobljeni timestamp v svoj casovni
pas, to obicajno naredis s funkcijo localtime, glej man).
More information about the lugos-list
mailing list