Re: libegg/recentchooser



> Uhm, I'll put that code under #idef G_OS_UNIX/#endif guards for the time
> being, but the getenv("TZ")/setenv("TZ") timezone trick should work on
> any sufficiently recent POSIX-like system; users of other operating
> systems might just drop me an email.

setenv isn't POSIX.  You can probably just use g_setenv although
that will leak.

But really, just do it as

    ((days_since_19700101 * 24 + h) * 60 + m) * 60 + s

where days_since_19700101 comes out of GDate.

M.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]