(RADIATOR) Timestamps
Jeremy Burton
jpburton at netspace.net.au
Mon Apr 1 18:52:42 CST 2002
not on linux or solaris :( :
linux:
jpburton at wave: [10:51] [~]> date -r 1017708708
date: 1017708708: No such file or directory
solaris:
jpburton at blade: [10:52] [~]> date -r 1017708708
date: illegal option -- r
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
that seems to be a bsd option (very frustrating at times too!).. :(
On Sun, Mar 31, 2002 at 11:31:59PM -0800, Steve Brown wrote:
> Well, if by unix timestamp you mean seconds past the epoch, just call
>
> date -r [timestamp]
>
> and the output will be a real date. You can adjust the format as necessary
> using plain old date formatting I believe. YMMV depending upon your OS
>
> Steve Brown
>
> > -----Original Message-----
> > From: owner-radiator at open.com.au
> > [mailto:owner-radiator at open.com.au]
> > Sent: Sunday, March 31, 2002 9:27 PM
> > To: radiator at open.com.au
> > Subject: (RADIATOR) Timestamps
> >
> > Does anyone know where I can find a perl script, or something that can
> > convert Unix timestamps to normal date format? I know it is possible, but
> > I do not know where to start looking.
> >
> >
> > Stephen Malenshek
> > President/CEO
> > Valuelinx Corporation
> > stephen at valuelinx.net
> >
> >
--
Jeremy Burton
Database Administrator, Netspace Online Systems
jpburton at netspace.net.au
jpburton at thedonkeys.org
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list