From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id BD85DBC0B for ; Sun, 21 Jan 2007 10:24:52 +0100 (CET) Received: from nef2.ens.fr (nef2.ens.fr [129.199.96.40]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0L9OqWC023801 for ; Sun, 21 Jan 2007 10:24:52 +0100 Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id l0L9OqvT057880 for ; Sun, 21 Jan 2007 10:24:52 +0100 (CET) X-Envelope-To: Received: from (george@localhost) by clipper.ens.fr (8.13.1/jb-1.1) Date: Sun, 21 Jan 2007 10:24:51 +0100 From: Nicolas George To: Caml mailing list Subject: Re: [Caml-list] Time stamp module floating around? Message-ID: <20070121092451.GA19604@clipper.ens.fr> References: <6dbd4d000701201842h5130b540x97648a3d2d058e6e@mail.gmail.com> <1169369029.6178.2.camel@rosella.wigram> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XsQoSWH+UP9D9v3l" Content-Disposition: inline In-Reply-To: <1169369029.6178.2.camel@rosella.wigram> User-Agent: Mutt/1.5.9i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.9 (nef2.ens.fr [129.199.96.32]); Sun, 21 Jan 2007 10:24:52 +0100 (CET) X-Miltered: at discorde with ID 45B33164.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lexical:01 caml-list:01 breaks:02 parse:02 ens:02 string:02 module:03 structure:06 stamp:06 ecrit:06 nicolas:08 nicolas:08 fields:11 fields:11 yyyy:13 X-Attachments: type="application/pgp-signature" name="signature.asc" --XsQoSWH+UP9D9v3l Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le duodi 2 pluvi=F4se, an CCXV, skaller a =E9crit=A0: > //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, --=20 Nicolas George --XsQoSWH+UP9D9v3l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (SunOS) iD8DBQFFszFjsGPZlzblTJMRAnzNAKDQ0DEngpb4f5Co2L+HqMri0YvyegCbBf0m CHhHqri41azuRXqoJHOZQ/o= =Lg/z -----END PGP SIGNATURE----- --XsQoSWH+UP9D9v3l--