[Ocaml-i18n] Re: TimeZone in OCamlI18N

Yamagata Yoriyuki yoriyuki at mbg.ocn.ne.jp
Fri Jun 11 16:10:55 PDT 2004


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.

I'm interested in your opinion.
--
Yamagata Yoriyuki





More information about the Ocaml-i18n mailing list