bugAVR C Runtime Library - Bugs: bug #44520, time.h mentions a "best...


bug #44520: time.h mentions a "best effort representation" but does not explain it

Submitted by:  Gregor Riepl <onitake>
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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 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.)

Attach Files:

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.5