Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » g_get_current_time() / win32: UTC instead of local time? [RSS Feed]

#1 Dec. 5, 2005 11:56:40

Felix K.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

g_get_current_time() / win32: UTC instead of local time?


Hi,

I get the current hour of the day (0-23) like this:

hour_of_the_day=
my_gtimeval.tv_sec % (3600*24) / 3600


My windows timezone is set to UTC+1 == GMT+1 == CET, however, this is
not respected. What ever I select as the windows timezone the above
formula calculates the same time (I guess UTC).


How can I get the local hour?


Thanks
Felix
_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » g_get_current_time() / win32: UTC instead of local time? [RSS Feed]

Board footer

Moderator control

Enjoy the 27th of April
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support