On Tue, 8 Nov 2005, Neil Brown wrote:
> On Monday November 7, [email protected] wrote:
> >
> > What format is that date in, please?
>
> %s %z
>
> (as date(1) understands it).
Yes. It happens to be one of the formats git understands, and is also
the least ambiguous.
> Or was this a rhetorical question, meaning to say "Who in their right
> mind would used that sort of date format on a public mailing list?" :-)
Yeah, it's really only machine-readable. In this case git-readable,
although git will accept dates in almost any format.
It happens to be the format internally used by git, since it's easy to
parse and you can't get it wrong.
It may be a mistake to expose it outside in that format, though. The git
"format patch as email" script will just use the internal date format,
which is nice from a "you can't get it wrong" angle, but arguably not very
human-friendly.
Not being able to get it wrong by converting it to a human-readable format
and then converting it back is a pretty big advantage, though (it's damn
easy to screw up summer-time and timezone when converting to/from UTC:
the "%s %z" format doesn't leave any confusion: the seconds is always
since the epoch in UTC, and the %z is purely informational to tell in
which timezone the change was made).
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]