[Issue 4944] New: Missing tzname even though we have tzset

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 26 07:26:59 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4944

           Summary: Missing tzname even though we have tzset
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: druntime
        AssignedTo: sean at invisibleduck.org
        ReportedBy: jmdavisProg at gmx.com


--- Comment #0 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-09-26 07:26:12 PDT ---
We have tzset in core.stdc.time. Missing from there are daylight and tzname
(which are what tzset sets). Personally, I don't think that daylight matters
much since you can get that easily enough from a tm. However, the lack of
tzname is a bit of a problem. Yes, tm has tm_zone which has the _current_ value
from tzname (be it tzname[0] or tzname[2]), but as far as I can tell, there is
no way at present to get both of the values of tzname without either directly
adding the appropriate C stuff yourself or by trying tms for multiple dates to
determine the second tzname value.

tzname in core.sys.posix.time but commented out - along with tzset and a
comment that they're in core.stdc.time, but only tzset is there, not tzname.

So, ideally, tzname would be added.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list