[Ocaml-i18n] Re: TimeZone in OCamlI18N

Matthieu Sozeau mattam at altern.org
Fri Jun 11 17:16:11 PDT 2004


On Saturday 12 June 2004 01:10, Yamagata Yoriyuki wrote:
> From: Matthieu Sozeau <mattam at mattam.org>
> Subject: [Ocaml-i18n] Re: TimeZone in OCamlI18N
> Date: Fri, 11 Jun 2004 17:48:01 +0200
>
> > > What I want is parsing Last-Modified header of HTTP, which can contain
> > > 3-letter TZ name, for my personal tool.
> > >
> > > By the way, what do you think adding an absolute time type
> > > (independent from calenders and timezone), like Unix time_t.  Since
> > > OCaml has bignum, we do not have the problem of year 2038 problem.
> >
> > time_t is relative to the Epoch (00:00:00 UTC, January 1, 1970)... What
> > would you want to do with it that you can't do with Bigints ?
>
> I think that my previous post is not clear about what I want.  I try
> again.
>
> I want a type which represents time by, for example, nano-seconds from
> Epoch and ability to convert it from/to calender types.  Since
> required math for such conversion is different in each calender (for
> example, Georgian and Julius), converter should be belong to each
> calender.

Ok, that would certainly be useful, and not too difficult to implement :)
-- 
"We have art to save ourselves from the truth." 
- Friedrich Nietzsche
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : /pipermail/ocaml-i18n/attachments/20040612/5d670dce/attachment.pgp 


More information about the Ocaml-i18n mailing list