[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] "mtn log" now converts dates to the user's timezon
From: |
Thomas Moschny |
Subject: |
Re: [Monotone-devel] "mtn log" now converts dates to the user's timezone |
Date: |
Fri, 29 May 2009 22:08:09 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
Zack Weinberg wrote:
> On Fri, May 29, 2009 at 12:39 PM, Thomas Moschny <address@hidden> wrote:
>> Zack Weinberg wrote:
>>> At present, the only thing affected is 'log'. My immediate thought is
>>> that absolutely we should *not* apply these changes to the automate
>>> interface, because that's intended for machine consumption; in
>>> particular, you don't want to have to parse whatever arbitrary gunk
>>> the user put in their date format spec.
>> Exactly what I thought. Converting dates to some locale is something a
>> presentation layer should do.
>
> I could argue, though, that back-converting from the textual UTC date
> format that monotone prints to a system time_t that can be handed to
> localtime() is a huge pain, and monotone already *has* that code...
Well, that's something different. It might indeed be easier for the
consumer to deal with a system_t (i.e. seconds since unix epoch) than to
parse the textual date format.
- Thomas