From: mogul@actitis.pa.dec.com (Jeffrey Mogul)
Subject: Re: timestamp (unix time)
Date: 1998/12/03 [thread overview]
Message-ID: <744p7b$rqo@usenet.pa.dec.com> (raw)
In-Reply-To: 743p02$8ps1@globo.edinfor.pt
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 745 bytes --]
In article <743p02$8ps1@globo.edinfor.pt>, "Pedro Nobre" <pmn@edinet.pt> 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
prev parent reply other threads:[~1998-12-03 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-02 5:00 timestamp (unix time) Pedro Nobre
1998-12-02 5:00 ` Ed Wensell III aka THE StormRaiser
1998-12-02 5:00 ` Pedro Nobre
1998-12-03 5:00 ` Boyd Adamson
1998-12-03 5:00 ` Jeffrey Mogul [this message]
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