FreeBSD's date can turn seconds since the epoch back into a human-readable
format:

$ date -j -f "%s" 1041286200
Mon Dec 30 17:10:00 EST 2002

-j means "do not set the date but still accept a new date and print the
results"

-f sets the format used by the input parser ala strptime(3) which is the
converse of strftime(3) the way scanf(3) is the converse of printf(3).

Does GNU have strptime(3)?


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to