Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone handling #1

Open
milancurcic opened this issue Jun 15, 2013 · 1 comment
Open

Timezone handling #1

milancurcic opened this issue Jun 15, 2013 · 1 comment

Comments

@milancurcic
Copy link
Member

datetime-fortran currently provides no timezone information in the datetime class definition. I believe timezone handling should be implemented as an optional derived type which is a component of datetime:

TYPE :: datetime

    ...

    TYPE :: tz
        ! tz components
    ENDTYPE tz

ENDTYPE datetime

A possible timezone model may the one from Python: http://docs.python.org/2/library/datetime.html#tzinfo-objects

@milancurcic
Copy link
Member Author

Time zones, daylight saving times, and leap seconds, all difficult to handle and important for tracking time in Gregorian calendar.

Current time zone capabilities in datetime-fortran are very basic - essentially a floating-point timezone offset is available as a component to datetime object, but must be controlled by user.

The IANA timezone database provides access to data and C code that handle all time zones, DSTs, and leap seconds in the past.

datetime-fortran should be able to interface this database, or at least a subset of it, for more complete timezone handling.

@milancurcic milancurcic reopened this Jan 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant