[Veritas-bu] Convert ctime to english...
2004-01-19 11:02:45
This is a MIME message. If you are reading this text, you may want to
consider changing to a mail reader or gateway that understands how to
properly handle MIME multipart messages.
----=_NextPart_ST_11_02_59_Monday_January_19_2004_10178
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
This is what I have from a while back. Hope it still works.
Decode UNIX Timestamp
bpdbm -ctime <timestamp>
Can also use
perl -e 'print localtime(<insert-long-number-here>)."\n"'
>>> "Hampus Lind" <hampus.lind AT rps.police DOT se> 01/19/2004 10:47:01 AM >>>
Hi!
Does anyone have a unix script to convert a "real" date vaule to ctime??
If so i would be very pleased if a could get a copy....
Thanks!
Best Regards
Hampus Lind
----=_NextPart_ST_11_02_59_Monday_January_19_2004_10178
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN-TOP: 2px; FONT: 10pt Batang; MARGIN-LEFT: 2px">
<DIV>This is what I have from a while back. Hope it still works.</DIV>
<DIV> </DIV>
<DIV>Decode UNIX Timestamp</DIV>
<DIV> </DIV>
<DIV>bpdbm -ctime <timestamp></DIV>
<DIV> </DIV>
<DIV>Can also use</DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial>perl -e 'print=20
localtime(<insert-long-number-here>)."\n"'<BR></FONT><BR>>>>=
=20
"Hampus Lind" <hampus.lind AT rps.police DOT se> 01/19/2004 10:47:01 AM=20
>>><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Does anyone have a unix script to convert =
a "real"=20
date vaule to ctime?? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If so i would be very pleased if a co=
uld get a=20
copy....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Best Regards</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Hampus Lind</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
----=_NextPart_ST_11_02_59_Monday_January_19_2004_10178--
|
|
|