[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #44520] time.h mentions a "best effort representatio

From: Gregor Riepl
Subject: [avr-libc-dev] [bug #44520] time.h mentions a "best effort representation" but does not explain it
Date: Thu, 12 Mar 2015 15:20:49 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.5.0


                 Summary: time.h mentions a "best effort representation" but
does not explain it
                 Project: AVR C Runtime Library
            Submitted by: onitake
            Submitted on: Thu 12 Mar 2015 03:20:48 PM GMT
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Unknown
           Fixed Release: None



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?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]