For When You Can't Have The Real Thing
[ start | index | login ]
start > perl > time2str

time2str

Created by dave. Last edited by dave, 12 years and 39 days ago. Viewed 3,084 times. #2
[diff] [history] [edit] [rdf]
labels
attachments

Time (in seconds) to string

#!/usr/bin/perl
use HTTP::Date;
print time2str(shift @ARGV)."\n";

Example:

$ ./time2str 1163015517
Wed, 08 Nov 2006 19:51:57 GMT
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt