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

Re: [Condor-users] When was 1189480839?



> 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?

Ohhh...these types of questions are fun! I like Perl so:

condor_status ttc-bs3066-112 -f "%d\n" AvailSince | perl -n -e 'chomp;
print "$_ = ", scalar(localtime($_)), "\n" if ($_);'

Gives me:

	1190411551 = Fri Sep 21 17:52:31 2007
	1190411551 = Fri Sep 21 17:52:31 2007

- Ian


Confidentiality Notice.  This message may contain information that is confidential or otherwise protected from disclosure.
If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, 
or copying of this message, or any attachments, is strictly prohibited.  If you have received this message in error, 
please advise the sender by reply e-mail, and delete the message and any attachments.  Thank you.