AVR C Runtime Library - Bugs: bug #44520, time.h mentions a "best...
You are not allowed to post comments on this tracker with your current authentication level.
bug #44520: time.h mentions a "best effort representation" but does not explain it
Submitter: | Gregor Riepl <onitake> | ||
Submitted: | Thu 12 Mar 2015 03:20:48 PM UTC | ||
Category: | Documentation | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | Header files |
Status: | None | Assigned to: | None |
Percent Complete: | 0% | Open/Closed: | Open |
Release: | Unknown | Fixed Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
No changes have been made to this item
Powered by Savane 3.13-d3ae.
Corresponding source code
This bug report applies to avr-libc 1.8.1.
The documentation for time.h mentions the following:
Section 7.23.2.3 mktime() The standard specifies that mktime() should return (time_t) -1, if the time cannot be represented. This implementation always returns a 'best effort' representation.
Please explain what "best effort" means in this context, and also add relevant information to the documentation of mktime and gm_mktime.
I assume these two functions clamp the value of the returned time_t to [0,UINT32_MAX], but is that the only limitation?