Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Nicolas George <nicolas.george@ens.fr>
To: Caml mailing list <caml-list@inria.fr>
Subject: Re: [Caml-list] Time stamp module floating around?
Date: Sun, 21 Jan 2007 10:24:51 +0100	[thread overview]
Message-ID: <20070121092451.GA19604@clipper.ens.fr> (raw)
In-Reply-To: <1169369029.6178.2.camel@rosella.wigram>

[-- Attachment #1: Type: text/plain, Size: 789 bytes --]

Le duodi 2 pluviôse, an CCXV, skaller a écrit :
> //Timestamp: 2007/1/12 18:36:37 UTC

I would strongly advise you tu use fixed-length fields with leading zeros:
the big advantage of using the year-month-day order, instead of
month-day-year or day-month-year, is that the lexical order of the string is
the same as the chronological order of the date. Using variable-length
fields breaks this. Furthermore, it makes it harder to parse the timestamp.

On the other hand, it is important not to forget "UTC".

While I am at it, I believe that yyyy-mm-dd is a more common format as
yyyy/mm/dd.

> //Timestamp: 2007/1/13 5:36:37 (local)

It is a shame that whoever designed the tm structure in the first place
forgot the tm_gmtoff field.

Regards,

-- 
  Nicolas George

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 185 bytes --]

  reply	other threads:[~2007-01-21  9:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-21  2:42 Denis Bueno
2007-01-21  3:48 ` [Caml-list] " Chris King
2007-01-21  8:43 ` skaller
2007-01-21  9:24   ` Nicolas George [this message]
2007-01-21  9:53     ` Robert Roessler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070121092451.GA19604@clipper.ens.fr \
    --to=nicolas.george@ens.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox