Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004038OCaml~DO NOT USE (was: OCaml general)public2006-06-05 22:582016-12-06 23:03
Assigned To 
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004038: No access to timezone information
DescriptionThere is no access to the timezone information set by the tzset() function. Note that simply inspecting the TZ environment variable is not sufficient, as that variable may not be set (in which case the C library does implementation-specific methods to figure out the time zone).

The tzset(3) function is specificied by POSIX, as such, this is probably a good addition to the Unix module.
Additional InformationAttached should be an example possible implementation to provide access to the timezone information. It has an iterface of:

external get_timezone : unit -> int = "get_timezone"

external get_daylight : unit -> int = "get_daylight"

external get_tzname : unit -> string array = "get_tzname"
Attached Filesc file icon timezone.c [^] (641 bytes) 2006-06-05 22:58 [Show Content]

- Relationships

-  Notes
spiralvoice (reporter)
2006-06-18 21:03

Ocaml-RSS, [^]

has some code for computing local timezone, check Rss_date.localzone: [^]
shinwell (developer)
2016-12-06 23:03

Time zone functionality is complicated and probably does not belong in the standard distribution. The Jane Street Core libraries are one place where such support may be found.

- Issue History
Date Modified Username Field Change
2006-06-05 22:58 bhurt-aw New Issue
2006-06-05 22:58 bhurt-aw File Added: timezone.c
2006-06-10 11:17 xleroy Status new => acknowledged
2006-06-18 21:03 spiralvoice Note Added: 0003691
2013-09-03 17:12 doligez Tag Attached: patch
2016-12-06 23:03 shinwell Note Added: 0016684
2016-12-06 23:03 shinwell Status acknowledged => closed
2016-12-06 23:03 shinwell Resolution open => won't fix
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:55 doligez Category -OCaml general => -(deprecated) general
2017-03-03 18:01 doligez Category -(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04 doligez Category ~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker