git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Approxidate with YYYY.MM

From
Michael Witten <mfwitten@gmail.com>
Date
May 22, 2011, 17:10 UTC
Message-ID
<BANLkTik_kSx8cumFWxnoCze1T72yzBxkQQ@mail.gmail.com>
In-Reply-To
<4DC8F91C.5090709@drmicha.warpmail.net>

On Tue, May 10, 2011 at 08:36, Michael J Gruber <git@drmicha.warpmail.net> wrote:

> Incidentally, we do not parse 2010-3 as March of 2010 either. Again,
> this is not ISO date format (but an unofficial abbreviation). We may
> decide to dwim that to 2010-03-01, and I would even appreciate that.

Wouldn't it make the most sense to provide another option to allow the user to specify whatever date format he wants (from the conversion specifiers understood by strptime(3))?

It seems really ridiculous to keep growing the date parsing code.
Previous: Michael J Gruber
Message 7 of 7 in “Approxidate with YYYY.MM”
  1. Brian GernhardtMay 9, 2011
  2. Michael J GruberMay 10, 2011
  3. Andreas EricssonMay 10, 2011
  4. Michael J GruberMay 10, 2011
  5. Victor EngmarkMay 10, 2011
  6. Michael J GruberMay 10, 2011
  7. Michael WittenMay 22, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.