caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: james woodyatt <jhw@wetware.com>
To: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] date - waiting for 64-bit (was: Gripes with array)
Date: Thu, 9 Sep 2004 09:12:43 -0700	[thread overview]
Message-ID: <14AA576E-027B-11D9-A648-000A958FF2FE@wetware.com> (raw)
In-Reply-To: <a06110453bd65f4369aff@[162.38.126.189]>

On 09 Sep 2004, at 04:55, Samuel Lelievre wrote:
>
> In the meanwhile, is there a way to work around the following?
>
> ------------------------------------------------------------------
>>        Caml Light version 0.75
>
> ##open "unix";;
> #time ();;
> - : int = -1052752875
> #gmtime (time ());;
> - : tm =
>  {tm_sec = 51; tm_min = 38; tm_hour = 8; tm_mday = 22; tm_mon = 7;
>   tm_year = 36; tm_wday = 6; tm_yday = 234; tm_isdst = false}
> #
> ------------------------------------------------------------------

Shameless promotion: after you migrate away from Caml Light to OCaml 
3.08.1, you may want to have a look at the Cf library in OCaml NAE 
project on SF.Net <URL:http://www.sf.net/projects/ocnae/>, where you 
will find an implementation of Daniel Bernstein's TAI64 time 
representation.

If you are serious about working with values of standard time, then the 
Unix time functions are not your friends.  They have lots of twisty 
little constraints on the utility of the values they give and take that 
are not at all intuitive.


-- 
j h woodyatt <jhw@wetware.com>
markets are only free to the people who own them.

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2004-09-09 16:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-09 11:55 Samuel Lelievre
2004-09-09 12:21 ` Basile Starynkevitch [local]
2004-09-09 13:20   ` [Caml-list] date - waiting for 64-bit Samuel Lelievre
2004-09-09 13:44     ` Basile Starynkevitch [local]
2004-09-09 14:03       ` Marcin 'Qrczak' Kowalczyk
2004-09-09 13:49     ` Marcin 'Qrczak' Kowalczyk
2004-09-09 16:12 ` james woodyatt [this message]

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=14AA576E-027B-11D9-A648-000A958FF2FE@wetware.com \
    --to=jhw@wetware.com \
    --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;
as well as URLs for NNTP newsgroup(s).