Re: [ILUG] Seconds to date?

From: kevin lyda (kevin+dated+1031269456.c76dc0 at domain ie.suberic.net)
Date: Sun 01 Sep 2002 - 00:44:27 IST


On Sat, Aug 31, 2002 at 11:29:35PM +0100, John Gaughan wrote:
> You can do it with GNU date like this:
> date -d '1970-01-01 1025481600 sec' +%Y/%m/%d

gnu date is limited by time_t. but i thought time_t expired in 2037?
this seems to show it expiring in 2038:

    % date -d '2038-01-19 3:14:07' '+%s'
    2147483647

kevin

-- 
kevin at domain suberic.net     that a believer is happier than a skeptic is no more to
fork()'ed on 37058400    the point than the fact that a drunken man is happier
meatspace place: home       than a sober one. the happiness of credulity is a
http://ie.suberic.net/~kevin   cheap & dangerous quality -- g.b. shaw


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:34 GMT