> 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.
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to