Veritas-bu

[Veritas-bu] Convert ctime to english...

2004-01-19 11:02:45
Subject: [Veritas-bu] Convert ctime to english...
From: dfdwyer AT tecoenergy DOT com (Dennis Dwyer)
Date: Mon, 19 Jan 2004 11:02:45 -0500
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>&nbsp;</DIV>
<DIV>Decode UNIX Timestamp</DIV>
<DIV>&nbsp;</DIV>
<DIV>bpdbm -ctime &lt;timestamp&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can also use</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>perl -e 'print=20
localtime(&lt;insert-long-number-here&gt;)."\n"'<BR></FONT><BR>&gt;&gt;&gt;=
=20
"Hampus Lind" &lt;hampus.lind AT rps.police DOT se&gt; 01/19/2004 10:47:01 AM=20
&gt;&gt;&gt;<BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anyone have a unix script to convert =
a "real"=20
date&nbsp;vaule to&nbsp;ctime?? </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If so i would be very&nbsp;pleased if a co=
uld get a=20
copy....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV></BODY></HTML>

----=_NextPart_ST_11_02_59_Monday_January_19_2004_10178--