Dates UTC + offset is non meaningful...?

Matt Mackall mpm at selenic.com
Mon Nov 15 08:38:28 CST 2010


On Mon, 2010-11-15 at 12:25 +0100, Jason Harris wrote:
> Hi All,
> 
> I just want to check if I am missing groking something about the dates mercurial is reporting.
> 
> In looking at the hg documentation on date times and times it says: 
> 
>        hgdate Date. Returns the date as a pair of numbers: "1157407993  25200"
>               (Unix timestamp, timezone offset).
> 
> But what is the timezone offset for?

Ever get an email? Mine looks like this:

From: 	Jason Harris <jason at jasonfharris.com>
To: 	Mercurial Devel <mercurial-devel at selenic.com>
Subject: 	Dates UTC + offset is non meaningful...?
Date: 	Mon, 15 Nov 2010 12:25:05 +0100

My email client tells me that you sent your email about lunch time
wherever it is that you are, which tells me more than 5am my time. 
For instance, it tells me I'm not likely to get a response at 6pm my
time.

The above timestamp is (local time, offset from UTC) vs Mercurial's (UTC
time, offset from UTC), which means doing absolute comparisons is
slightly easier with Mercurial.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list