From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,8472dae0dfdcba15 X-Google-Attributes: gidfee84,public From: mogul@actitis.pa.dec.com (Jeffrey Mogul) Subject: Re: timestamp (unix time) Date: 1998/12/03 Message-ID: <744p7b$rqo@usenet.pa.dec.com>#1/1 X-Deja-AN: 418063567 References: <7437b5$a86@globo.edinfor.pt> <366542CE.7893@pstcc.cc.tn.us.net> <743p02$8ps1@globo.edinfor.pt> Organization: DEC Western Research Newsgroups: comp.unix.osf.osf1 In article <743p02$8ps1@globo.edinfor.pt>, "Pedro Nobre" writes: |> Thanks, but that isn�t realy what i�m looking for. |> You are write, i'm making a shell script, but let me explain it better: |> Unix stores date in a long integer that represents the number of seconds |> since Jan,1,1970. |> What i pretend is something that decodes a number, say "912614795", to a |> date "02-12-1998 16:05:31" corresponding to that number. The GNU version of AWK, called "gawk", has a function named strftime() that does what you want. See "man gawk" for more details (and you will also have to do "man strftime" to find out how to get the format that you want. Then you can invoke gawk from your script - no compiler needed. -Jeff