Re: Teach "approxidate" about weekday syntax
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Nov 19, 2005, 00:48 UTC
- Message-ID
- <Pine.LNX.4.64.0511181643190.13959@g5.osdl.org>
- In-Reply-To
- <437E6CAB.8060200@op5.se>
On Sat, 19 Nov 2005, Andreas Ericsson wrote:
Show 5 quoted lines
> > nox!exon:~$ date --iso-8601=seconds > 2005-11-19T01:04:56+0100 > > No human will spell it with T though.
Git doesn't care.
./test-date 2005-11-19T01:04:56+0100
results in
2005-11-19T01:04:56+0100 -> 1132358696 +0100 -> Fri Nov 18 16:04:56 2005
which should be correct: I'm in PST, test-date shows the "git time" (seconds since the epoch plus TZ) and then the local time in human-readable ascii.
The "T" to the git date parser is just a superfluous character that just happens to be a perfectly valid way to separate out the numbers ;)
Linus