A NOTE has been added to this issue. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1533 
====================================================================== 
Reported By:                steffen
Assigned To:                
====================================================================== 
Project:                    1003.1(2016/18)/Issue7+TC2
Issue ID:                   1533
Category:                   Base Definitions and Headers
Type:                       Enhancement Request
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       steffen 
Organization:                
User Reference:              
Section:                    time.h 
Page Number:                425 
Line Number:                14451 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2021-11-08 22:04 UTC
Last Modified:              2022-06-30 15:37 UTC
====================================================================== 
Summary:                    struct tm: add tm_gmtoff (and tm_zone) field(s)
====================================================================== 

---------------------------------------------------------------------- 
 (0005878) geoffclare (manager) - 2022-06-30 15:37
 https://austingroupbugs.net/view.php?id=1533#c5878 
---------------------------------------------------------------------- 
For time.h, struct tm, on page 425, append to the struct tm member listing
after line 14450,<blockquote><tt>long tm_gmtoff</tt>         Seconds east
of UTC.
<tt>const char *tm_zone</tt> Timezone abbreviation.</blockquote>
And after line 14452<blockquote>If the value of <i>tm_zone</i> is accessed
after the value of <i>TZ</i> is subsequently modified, and the
<i>tm_zone</i> value was not set by a call to <i>gmtime</i>() or
<i>gmtime_r</i>(), the behaviour is undefined.</blockquote>

For gmtime, on page 1113, lines 37692 ff., append after<blockquote>Upon
successful completion, <i>gmtime_r</i>( ) shall return the address of the
structure pointed to by the argument result.</blockquote>the
sentence<blockquote>The structure's <i>tm_zone</i> member shall be set to a
pointer to the string "UTC", which shall have static storage
duration.</blockquote>
For localtime, on page 1265, lines 42225 ff., append
after<blockquote>Unlike localtime( ), the localtime_r( ) function is not
required to set tzname. If localtime_r( ) sets tzname, it shall also set
daylight and timezone. If localtime_r( ) does not set tzname, it shall not
set daylight and shall not set timezone.</blockquote>the
sentence<blockquote>If the <b>struct tm</b> member <i>tm_zone</i> is
accessed after the value of <i>TZ</i> is subsequently modified, the
behaviour is undefined.</blockquote>
For strftime, on page 2047, line 65623 (z conversion),
change<blockquote>[tm_isdst]</blockquote>to<blockquote>[tm_isdst,
tm_gmtoff]</blockquote>
and line 65625 (Z conversion)
from<blockquote>[tm_isdst]</blockquote>to<blockquote>[tm_isdst,
tm_zone]</blockquote> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2021-11-08 22:04 steffen        New Issue                                    
2021-11-08 22:04 steffen        Name                      => steffen         
2021-11-08 22:04 steffen        Section                   => time.h          
2021-11-08 22:04 steffen        Page Number               => 425             
2021-11-08 22:04 steffen        Line Number               => 14451           
2021-11-21 22:28 steffen        Note Added: 0005529                          
2021-11-22 09:47 geoffclare     Note Added: 0005530                          
2021-11-22 10:12 geoffclare     Note Added: 0005531                          
2021-11-22 10:50 geoffclare     Note Added: 0005532                          
2021-11-22 15:26 steffen        Note Added: 0005533                          
2021-11-22 15:36 steffen        Note Added: 0005534                          
2022-02-03 16:58 shware_systems Note Added: 0005656                          
2022-02-03 17:32 Don Cragun     Note Added: 0005657                          
2022-02-03 18:41 kre            Note Added: 0005658                          
2022-02-03 22:18 steffen        Note Added: 0005660                          
2022-02-06 11:37 mirabilos      Note Added: 0005664                          
2022-02-06 23:28 kre            Note Added: 0005667                          
2022-03-14 00:31 steffen        Note Added: 0005745                          
2022-03-15 15:55 steffen        Note Edited: 0005745                         
2022-06-30 15:37 geoffclare     Note Added: 0005878                          
======================================================================


  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • Re: [10... Steffen Nurpmeso via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to