[RESENT] TIME_GetBias

Alexandre Julliard julliard at winehq.org
Tue Mar 16 13:35:00 CST 2004


Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes:

>     ptm = localtime(&utc);
>     ptm = gmtime(&utc);
>     ret = last_bias = (int)(utc-mktime(ptm));
>
> I my understanding mktime(gmtime(time(NULL))) == time(NULL)

No, mktime takes local time, it's the reverse of localtime(), not
gmtime().

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list