From: Franco Tassone <franco@dns.rgn.it>
To: axp-list@redhat.com
Subject: SUMMARY: Converting time (since 01-01-1970) to Epoch
Date: Thu, 20 May 1999 09:59:30 +0200 (CEST) [thread overview]
Message-ID: <199905200759.JAA08818@dns.rgn.it> (raw)
Thanks to all who answered.
Two consideration arose:
- SGI is little endian, while AlphaLinux is big endian but ...
- Although shifting/redefining/setting the ut_time variable in ru_utmp
structure of AlphaLinux, the result is only garbled dates.
Various attempt were made, building structures as suggested from you
all or shifting the data; the attempts were made both in IRIX box and
AlphaLinux box; no success, at the moment.
Solution: Re-wrote the original file in the SGI box substituting the
original value (ut_date as long) with the ascii value
returned by ctime(3).
Then re-converted to ut_time, on AlphaLinux, using
strptime and mktime.
Thanks to you all.
-------------------------------------------------------------
Franco Tassone Tel: +39-085-4510954
RGNetWork Internet Service Provider Fax: +39-085-64070
Via G. D'Annunzio, 162 e-mail: admin@rgn.it
65127 PESCARA (ITALY) URL: http://www.rgn.it
-------------------------------------------------------------
reply other threads:[~1999-05-20 8:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox