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: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: NonePercent Complete: 0%
Assigned to: NoneOpen/Closed: Open
Release: UnknownFixed 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 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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1