a human-eye date format everyone can love
From: Ask Bjoern Hansen <ask_at_develooper.com>
Date: 2002-06-25 12:11:40 CEST
If saving space is a big concern, a few characters could be saved by
Something like
$ date +'%Y%m%dT%H%M%S%z'
Would be the most compact ISO 8601 way to tell the time right now in
Bending the rules slightly and substituting the T with a space helps
$ date +'%Y%m%d %H%M%S%z'
But I doubt it's worth saving 4 characters for. :)
$ date +'%Y-%m-%d %H:%M:%S%z'
Specifying the timezone as a two digit number is valid, if I am not
If the timezone is UTC, it might make sense to print that as
$ date +'%Y-%m-%d %H:%M:%SZ'
Thanks for listening. :)
- ask (who thinks having just the weekday in the second part would
-- ask bjoern hansen, http://askbjoernhansen.com/ !try; do(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Tue Jun 25 12:12:06 2002 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.