You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4038 Reporter: bhurt-aw Status: closed (set by @mshinwell on 2016-12-06T22:03:36Z) Resolution: won't fix Priority: normal Severity: feature Category: ~DO NOT USE (was: OCaml general) Tags: patch Monitored by:@mmottl
Bug description
There 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 information
Attached 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"
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.
Original bug ID: 4038
Reporter: bhurt-aw
Status: closed (set by @mshinwell on 2016-12-06T22:03:36Z)
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Tags: patch
Monitored by: @mmottl
Bug description
There 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 information
Attached 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"
File attachments
The text was updated successfully, but these errors were encountered: