× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Mon, 17 Sep 2007, Mike Cunningham wrote:

I did find similar code but this looks to me like it will adjust the time based on the current value in QUTCOFFSET not the value it was at the time the unix timestamp was made. So if "today" is December 1 and the time difference is -05:00 but the unix stamp was made June 1 when the offset was only -04:00 the result will be off 1 hour won't it?

There is a C API called localtime that given the time in seconds since the UNIX epoch will return the date and time in the local time zone appropriate for that time. So if you are in a timezone which changes between standard and daylight savings time and you give localtime() a time which is would have a different UTC offset than is currently active it will use the UTC offset that is appropriate.

James Rich

It's not the software that's free; it's you.
- billyskank on Groklaw

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.