Veritas-bu

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

2004-01-19 11:19:25
Subject: [Veritas-bu] Convert ctime to english...
From: james.park AT bt DOT com (james.park AT bt DOT com)
Date: Mon, 19 Jan 2004 16:19:25 -0000
This is a multi-part message in MIME format.

------_=_NextPart_001_01C3DEA8.0196A3D6
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

the only thing i've done remotely similar to this is within mysql (
which isnt really that useful for scripting purposes ).
=20
mysql> select unix_timestamp('2004-01-19 17:00:00');
+---------------------------------------+
| unix_timestamp('2004-01-19 17:00:00') |
+---------------------------------------+
|                            1074531600 |
+---------------------------------------+
1 row in set (0.00 sec)
=20

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Hampus
Lind
Sent: 19 January 2004 16:07
To: Alfon Liao
Cc: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Convert ctime to english...


=20
Sorry Guys, maybe i dident write it rigth. I`am looking for a way to
convert "Thu Jan 15 18:19:04 2004" into ctime... Not ctime to real date.
=20
Best Regards
Hampus Lind
=20

----- Original Message -----=20
From: Alfon  <mailto:Alfon.Liao AT kanatek DOT com> Liao=20
To: Hampus Lind <mailto:hampus.lind AT rps.police DOT se> =20
Sent: Monday, January 19, 2004 5:02 PM
Subject: RE: [Veritas-bu] Convert ctime to english...

bpdbm -ctime #####
=20
for example:
=20
# bpdbm -ctime 1074208744
1074208744 =3D Thu Jan 15 18:19:04 2004
=20

-----Original Message-----
From: Hampus Lind [mailto:hampus.lind AT rps.police DOT se]
Sent: Monday, January 19, 2004 10:47 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Convert ctime to english...


Hi!
=20
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....
=20
Thanks!
=20
Best Regards
Hampus Lind
=20


------_=_NextPart_001_01C3DEA8.0196A3D6
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D952471316-19012004><FONT face=3DArial color=3D#0000ff =
size=3D2>the=20
only thing i've done remotely similar to this is within mysql ( which =
isnt=20
really that useful for scripting purposes ).</FONT></SPAN></DIV>
<DIV><SPAN class=3D952471316-19012004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D952471316-19012004><FONT face=3DArial color=3D#0000ff =

size=3D2>mysql&gt; <STRONG>select unix_timestamp('2004-01-19=20
17:00:00');<BR></STRONG>+---------------------------------------+<BR>|=20
unix_timestamp('2004-01-19 17:00:00')=20
|<BR>+---------------------------------------+<BR>|&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<STRONG>1074531600</STRONG> =
|<BR>+---------------------------------------+<BR>1=20
row in set (0.00 sec)</FONT></SPAN></DIV>
<DIV><SPAN class=3D952471316-19012004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
  face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B>=20
  veritas-bu-admin AT mailman.eng.auburn DOT edu=20
  [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] <B>On Behalf Of =
</B>Hampus=20
  Lind<BR><B>Sent:</B> 19 January 2004 16:07<BR><B>To:</B> Alfon=20
  Liao<BR><B>Cc:</B> =
veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> Re:=20
  [Veritas-bu] Convert ctime to english...<BR><BR></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT size=3D2><FONT face=3DArial>Sorry Guys, maybe i dident =
write it rigth.=20
  I`am looking for a way to convert "Thu Jan 15 18:19:04 2004" into =
ctime... Not=20
  ctime to real date.</FONT></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>&nbsp;</DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A title=3DAlfon.Liao AT kanatek DOT com =
href=3D"mailto:Alfon.Liao AT kanatek DOT com">Alfon=20
    Liao</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dhampus.lind AT rps.police DOT se=20
    href=3D"mailto:hampus.lind AT rps.police DOT se">Hampus Lind</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, January 19, =
2004 5:02=20
    PM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Veritas-bu] =
Convert ctime=20
    to english...</DIV>
    <DIV><BR></DIV>
    <DIV><SPAN class=3D479330016-19012004><FONT face=3D"Comic Sans MS" =
color=3D#0000ff=20
    size=3D2>bpdbm -ctime #####</FONT></SPAN></DIV>
    <DIV><SPAN class=3D479330016-19012004><FONT face=3D"Comic Sans MS" =
color=3D#0000ff=20
    size=3D2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=3D479330016-19012004><FONT face=3D"Comic Sans MS" =
color=3D#0000ff=20
    size=3D2>for example:</FONT></SPAN></DIV>
    <DIV><SPAN class=3D479330016-19012004><FONT face=3D"Comic Sans MS" =
color=3D#0000ff=20
    size=3D2></FONT></SPAN>&nbsp;</DIV>
    <DIV><SPAN class=3D479330016-19012004><FONT face=3D"Comic Sans MS" =
color=3D#0000ff=20
    size=3D2># bpdbm -ctime 1074208744<BR>1074208744 =3D Thu Jan 15 =
18:19:04=20
    2004</FONT></SPAN></DIV>
    <DIV><SPAN class=3D479330016-19012004><FONT face=3D"Comic Sans MS" =
color=3D#0000ff=20
    size=3D2></FONT></SPAN>&nbsp;</DIV>
    <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
      <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
      size=3D2>-----Original Message-----<BR><B>From:</B> Hampus Lind=20
      [mailto:hampus.lind AT rps.police DOT se]<BR><B>Sent:</B> Monday, January 
=
19,=20
      2004 10:47 AM<BR><B>To:</B> <A=20
      =
href=3D"mailto:veritas-bu AT mailman.eng.auburn DOT edu">veritas-bu AT mailman 
DOT eng.=
auburn.edu</A><BR><B>Subject:</B>=20
      [Veritas-bu] Convert ctime to english...<BR><BR></FONT></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=20
      "real" date&nbsp;vaule to&nbsp;ctime?? </FONT></DIV>
      <DIV><FONT face=3DArial size=3D2>If so i would be =
very&nbsp;pleased if a could=20
      get a 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=20
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY=
></HTML>

------_=_NextPart_001_01C3DEA8.0196A3D6--