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: 5063 Reporter: dario Status: acknowledged (set by @damiendoligez on 2011-06-01T21:01:05Z) Resolution: open Priority: normal Severity: feature Version: 3.11.2 Category: otherlibs Tags: patch
Bug description
The "Time Functions" in the Unix module provide comprehensive coverage of the time-related operations available in Libc. There is one conspicuous absence, however: the tzname variable, which provides access to the DST-adjusted abbreviated name of the current timezone. Presently, accessing this value from an Ocaml program requires writing a small C function.
Additional information
The function 'sprint_timestamp' listed below returns a string with the given timestamp pretty-printed in a complete form, ie, including also the abbreviated timezone name adjusted for daylight-savings. It must be written in C, since the Unix module offers no access to the tzname variable.
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Original bug ID: 5063
Reporter: dario
Status: acknowledged (set by @damiendoligez on 2011-06-01T21:01:05Z)
Resolution: open
Priority: normal
Severity: feature
Version: 3.11.2
Category: otherlibs
Tags: patch
Bug description
The "Time Functions" in the Unix module provide comprehensive coverage of the time-related operations available in Libc. There is one conspicuous absence, however: the tzname variable, which provides access to the DST-adjusted abbreviated name of the current timezone. Presently, accessing this value from an Ocaml program requires writing a small C function.
Additional information
The function 'sprint_timestamp' listed below returns a string with the given timestamp pretty-printed in a complete form, ie, including also the abbreviated timezone name adjusted for daylight-savings. It must be written in C, since the Unix module offers no access to the tzname variable.
CAMLprim value sprint_timestamp (value v_time)
The text was updated successfully, but these errors were encountered: