summaryrefslogtreecommitdiff
path: root/lib/libc/time
AgeCommit message (Collapse)Author
2014-05-06enh@google reported a warning in crufty y2k code. just delete it.Ted Unangst
ok deraadt stsp
2014-02-13Fix logic bug; we can only infer tm_yday if both tm_mday and tm_monTodd C. Miller
are set. Adapted from a diff from David Higgs. OK krw@
2014-01-24Update C standard reference to C99 and document HISTORY and AUTHORS;Ingo Schwarze
using input from millert@, reminded by and ok jmc@
2014-01-23also document that ctime* and asctime* can return NULL; ok deraadt@, millert@Otto Moerbeek
2014-01-21document return values; ok deraadt@, jmc@Otto Moerbeek
2014-01-21obvious .Pa fixes; found with mandocdb(8)Ingo Schwarze
2013-11-24most obvious unsigned char casts for ctypeTheo de Raadt
ok jca krw ingo
2013-07-17more library historyIngo Schwarze
facts checked by sobrado@ style tweaks and ok jmc@
2013-06-05Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzeTed Unangst
2013-04-17add some prototypes, casts, includes, parenthesis, and whatnot toTed Unangst
silence some warnings.
2013-01-20Properly handle "%%" and "%N" where N is not a supported escape.Todd C. Miller
This is consistent with strftime(3) behavior. OK stsp@
2013-01-05Fix verbiage to make it clear that on success the return value ofKenneth R Westerback
strftime() is the number of characters printed. POSIX verbiage verified by jmc@, ok jmc@.
2012-09-13Update to tzcode2012f. Now that tzcode is in git there are no moeTodd C. Miller
SCCS ids. No actual code changes.
2012-08-18RFC updates:Jason McIntyre
5322 obsoletes 2822 5321 obsoletes 821 and 2821 6409 obsoletes 2476 and 4409
2012-03-01Update to tzcode2012a from munnari.oz.auTodd C. Miller
2012-02-26Fix several manpage titles, from Lawrence Teo.Christiano F. Haesbaert
ok dcoppa@ jmc@ schwarze@.
2012-01-16POSIX indicates that some fields should be computed even if notTodd C. Miller
explicitly set. We can compute tm_yday, tm_wday, tm_mon and tm_mday based on the values that were specified if possible. Some logic borrowed from localtime.c. OK espie@ deraadt@
2011-10-16Hook wcsftime(3) to the build; committing on behalf of espieStefan Sperling
2011-10-10put in code for wcstfime, as discussed with millert@ and stsp@ (and testedMarc Espie
by ajacoutot@, thx), to be linked in and activated alongside wscanf...
2011-10-10Stop defining XPG4_1994_04_09.Antoine Jacoutot
As kettenis@ pointed at, http://pubs.opengroup.org/onlinepubs/009695399/functions/strftime.html has the following: The Open Group Corrigendum U033/8 is applied. The %V conversion specifier is changed from "Otherwise, it is week 53 of the previous year, and the next week is week 1" to "Otherwise, it is the last week of the previous year, and the next week is week 1". In effect, strftime(3) with the "%V" format will now return "52" instead of "53" for days in January before the first Monday, when January 1st falls on a Friday, Saturday, or Sunday. ok kettenis@ millert@
2011-09-16after some thought, i think it unlikely that we will need to specifyJason McIntyre
a revision number for ISO 8601; in addition, the revision number makes the text unwieldy when discussing the standard in a casual manner. therefore change the macro from -8601-4 to simply -8601, which will output "ISO 8601". i'll get kristaps or ingo to make the change upstream to mandoc. discussed with/ok millert
2011-09-16use .St here for ISO 8601 references; ok millertJason McIntyre
2011-09-16RFC-2822 -> RFC 2822Jason McIntyre
2011-08-31only one leap second is permitted, not two; from guentherJason McIntyre
2011-07-01Enable the knob to dynamically allocate (large) state structures.Todd C. Miller
2011-04-25Update to tzcode2011g from elsie.nci.nih.gov.Todd C. Miller
2011-01-19Fix typo, %F pattern corresponds to %Y-%m-%d (the ISO 8601 date format),Landry Breuil
not %Y/%m/%d. Found while debugging geo/gpx-viewer. ok millert@ jasper@
2011-01-19- missing leading '.' before 'It'.Jasper Lievisse Adriaanse
spotted by landry@
2010-11-30replace a large stack buffer with a malloc call, with help from matthew.Ted Unangst
ok deraadt [passed upstream to the tz list as well]
2010-11-08tweak previous;Jason McIntyre
2010-11-08Add %F, %g, %G, %u, %z (extended) and %Z.Jasper Lievisse Adriaanse
This is mostly a sync with NetBSD. tested in a bulk build by landry@ ok millert@
2010-09-27Update to tzcode2010m from elsie.nci.nih.govTodd C. Miller
2010-08-23update to tzcode2010k from elsie.nci.nih.gov; OK miod@Todd C. Miller
2010-04-12clarify that strptime reads, not writes, strings when handling %%.Ted Unangst
ok deraadt jmc
2010-01-03blank lines not allowed outside literal context;Ingo Schwarze
syntax errors found by mandoc(1), also required to fix the mandoc build; ok jmc@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-09-09maxzis -> maxsize; from Han BoetesJason McIntyre
2008-10-31Pass a pointer to warn2 so the warn2 == IN_ALL would not be anTodd C. Miller
always-false condition. From FreeBSD (delphij).
2008-10-23Reword description of tm_zone and tm_gmtoff fieldsPhilip Guenthe
Prompted by millert@; ok millert@ jmc@
2008-10-19Document that strptime doesn't set the dst flag.Todd C. Miller
Based on a diff from Mark Bucc. OK jmc@
2008-10-06update to tzcode2008g from elsie.nci.nih.govTodd C. Miller
2008-07-28Update to tzcode2008e from elsie.nci.nih.govTodd C. Miller
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-03-31Update to tzcode 2008a from elsie.nci.nih.govTodd C. Miller
2008-01-07update to tzcode2007k from elsie.nci.nih.govTodd C. Miller
2007-12-29update to tzcode2007j from elsie.nci.nih.gov; mostly ANSIficationTodd C. Miller
2007-10-04update to tzcode2007h from elsie.nci.nih.govTodd C. Miller
2007-09-17Check snprintf(3) return value for error or truncation.Moritz Jodeit
Mostly path construction, where truncation could be bad. ok and input from deraadt@ millert@ ray@
2007-08-22Update to tzcode2007f grom elsie.nci.nih.gov; no actual code changesTodd C. Miller
2007-06-30Update to tzcode2007f from elsie.nci.nih.govTodd C. Miller