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

Re: [Condor-users] When was 1189480839?

Steven Timm wrote:
Does anyone have a quick command-line utility to convert
from the condor timestamps of seconds since the unix epoch, to human
dates, and back?

One liners (bash):

function ctime() { perl -we 'print scalar localtime('"$1"'), "\n"'; }
function utime() { date -d "$*" +%s; }

[greenc@gratia01] ~ $ ctime 1189480839
Mon Sep 10 22:20:39 2007
[greenc@gratia01] ~ $ utime `ctime 1189480839`


Chris Green <greenc@xxxxxxxx>, FNAL CD/SCF/GRID.
'Phone (630) 840-2167.
IRC: greenc@xxxxxxxxxxxxxxx, ChrisGreen@xxxxxxxxxxxxxxxxxx;
chissgreen (AIM, Yahoo); chissg@xxxxxxxxxxx (MSNM);
chris.h.green (Google Talk).

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature