[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] When was 1189480839?



One solution that can work anywhere you have perl.  Save the following tiny script into a file - I call it "ctime".  Then invoke as
   ctime <epoch time(s)> 
and you'll get a human date out.


#!/usr/bin/env perl

use Time::CTime;

foreach my $arg (@ARGV) {
    print ctime( $arg );
}

< Sent from a Palm Treo 680 >
-----Original Message-----
From: David Brodbeck <brodbd@xxxxxxxxxxxxxxxx>
Date: Thursday, Sep 27, 2007 2:30 pm
Subject: Re: [Condor-users] When was 1189480839?
To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>Reply-To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>

 On Sep 27, 2007, at 11:58 AM, obi wrote:
>> I do use nws_cmd (part of NWS) to translate: in this case it was
> 10-09-2007/20:20:39.
>> But you can use date -d '@1189480839'.
> Ah, so *that's* how you do that in Linux.  I'd done it with 'date -r'  before on BSD, but that's a BSD-ism that isn't in GNU date.
> David Brodbeck
>Information Technology Specialist 3
>Computational Linguistics
>University of Washington
>--Apple-Mail-7-12918760
>Content-Transfer-Encoding: quoted-printable
>Content-Type: text/html;
>	charset=ISO-8859-1
>
>
>
>On Sep 27, 2007, = at 11:58 AM, obi wrote:
>I do use nws_cmd (part of NWS) to translate: in this = case it was10-09-2007/20:20:39.
>But you = can use date -d '@1189480839'.
>
>
>Ah, so *that's* how you do = that in Linux.=A0 I'd done it with 'date -r' before on BSD, but that's a = BSD-ism that isn't in GNU date.
>
>
>
> To: Condor-Users Mail List  Repl