[lkml]   [2005]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [OT] Re: [PATCH 3/18] allow callers of seq_open do allocation themselves

    On Tue, 8 Nov 2005, Neil Brown wrote:
    > On Monday November 7, 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

    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).

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-11-18 23:46    [W:0.063 / U:57.764 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site