fifth-postulate / julian

Date and time library for Prolog
The Unlicense
27 stars 3 forks source link

handle time zones #3

Open mndrix opened 11 years ago

mndrix commented 11 years ago

A time module isn't much use without time zone support. The first step is to make library(time_zone) which encapsulates all information in the zoneinfo database and makes it conveniently accessible. Using that module, add time zone support to Julian.

This probably requires representing times as datetime(MJD, Nano, TZ). Both local and utc should probably be special time zones. I need to think long and hard about the semantics of time zones. What does MJD mean when TZ=america/denver, for example?