Bug 63369
Summary: | mktime seems to have changed between glibc-2.2.5-30 and glibc-2.2.5-32 | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Chip Turner <cturner> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED RAWHIDE | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | fweimer |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-04-15 03:31:59 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 63361 | ||
Bug Blocks: | 61590 |
Description
Chip Turner
2002-04-13 00:20:05 UTC
marked 63361 as depending on this Yes, this has changed. See http://bugs.gnu.org/cgi-bin/gnatsweb.pl?debug=&database=default&cmd=view+audit-trail&cmd=view&pr=2738 A value that approximates the number of seconds that have elapsed since the Epoch. A Coordinated Universal Time name (specified in terms of seconds (tm_sec), minutes (tm_min), hours (tm_hour), days since January 1 of the year (tm_yday), and calendar year minus 1900 (tm_year)) is related to a time represented as seconds since the Epoch, according to the expression below. If the year is <1970 or the value is negative, the relationship is undefined. If the year is 1970 and the value is non-negative, the value is related to a Coordinated Universal Time name according to the C-language expression, where tm_sec, tm_min, tm_hour, tm_yday, and tm_year are all And mktime is defined as: The mktime( ) function shall return the specified time since the Epoch encoded as a value of type time_t. If the time since the Epoch cannot be represented, the function shall return the value (time_t)-1. tm_year=69 means a year < 1970 and therefore undefined and cannot be represented. Was this some standard conformance suite or what have you used to find out about this? The time passed is interpreted as in the current timezone. Hence, the time since the epoch *can* be represented. As to what prompted this, this is what causes perl-Date-Calc to fail building, as its test suite fails. http://sources.redhat.com/ml/libc-hacker/2002-04/msg00053.html was added into glibc-2.2.5-33. Can you please check it out? Looks good, output of test.c on my workstation with glibc-2.2.5-33 is: [cturner@minbar cturner]$ ./test time: 17999, Wed Dec 31 23:59:59 1969 perl-Date-Calc also passes its tests now |