bugAVR 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

Thu 12 Mar 2015 03:20:48 PM UTC, original submission:  

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?

Gregor Riepl <onitake>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by onitake (Submitted the item)
  •  

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code