Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004038OCamlOCaml generalpublic2006-06-05 22:582013-09-03 17:12
Reporterbhurt-aw 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusacknowledgedResolutionopen 
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"
Tagspatch
Attached Filesc file icon timezone.c [^] (641 bytes) 2006-06-05 22:58 [Show Content]

- Relationships

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

Ocaml-RSS, http://savannah.nongnu.org/cvs/?group=ocamlrss [^]

has some code for computing local timezone, check Rss_date.localzone:

http://cvs.savannah.nongnu.org/viewcvs/ocamlrss/rss_date.ml?rev=1.1&root=ocamlrss&view=auto [^]

- 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


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker