On Fri, 16 Jan 2004, Paul Reiff wrote:

> Hello everybody,
>
> i have a question concerning the timestamp in the cachefiles, which analog
> can produce. Looking at the sources of analog (especially the dates.c), i
> found out, that analog generaly stores dates in a  number that counts the
> minutes from midnight 30-31.12.1969.
> But there occurs a problem when i want convert a date (format dd.mm.yyyy
> hh:mm) to such an analog timestamp.
> If i take the unix timestamp of the date, add 86400 to it ('cause from
> midnight 30-31.12.1969 to midnight 31-01.12.1969/70 we need 24*60=1440
> minutes=86400 seconds) , divide it by 60 (1 minute = 60 seconds) one should
> think that's the correct analog timestamp for the date. But i always have to
> add 120 in order to get the same analog timestamp for the date as analog
> does....
> Can anyone tell me where's my error in reasoning ?
>

Timezones?

-- 
Stephen Turner, Cambridge, UK    http://homepage.ntlworld.com/adelie/stephen/
"The internet is a reflection of our society. If we do not like what we see,
 the problem is not to fix the mirror, we have to fix society." (Vint Cerf)
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to