To get the current date and time in the format hh:mm::ss mm/dd/yy and if you are looking for a perl one liner here you go.
perl -e "use POSIX; print strftime qq(%X %x), localtime(time); "
Output is
00:00:51 11/06/08
Wednesday, November 5, 2008
To get current date and time. hh:mm::ss mm/dd/yy
Posted by Nexis at 7:02 AM 1 comments
Labels: perl one liners
Subscribe to:
Posts (Atom)