From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18261 invoked from network); 20 May 1999 08:47:02 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 20 May 1999 08:47:02 -0000 Received: from dns.rgn.it (dns.rgn.it [151.99.243.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id EAA20582 for ; Thu, 20 May 1999 04:07:45 -0400 Received: (from franco@localhost) by dns.rgn.it (8.9.3/8.9.3) id JAA08818 for axp-list@redhat.com; Thu, 20 May 1999 09:59:30 +0200 (CEST) Date: Thu, 20 May 1999 09:59:30 +0200 (CEST) From: Franco Tassone Message-Id: <199905200759.JAA08818@dns.rgn.it> To: axp-list@redhat.com Subject: SUMMARY: Converting time (since 01-01-1970) to Epoch 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 -------------------------------------------------------------