From f1d439fc641fb71c9cf1e32e6a06885f10dbabdc Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 16 Feb 2005 21:15:37 +0000 Subject: 2005-02-16 Eric Blake * libc/time/time.tex: Improve the documentation. * libc/time/strftime.c: Improve the documentation. (iso_year_adjust): New helper function. (strftime): Simplify '%E' and '%O'. Change '%c' to use recursion. Fix '%C', '%y', and '%Y' to deal with years with more than 4 characters. Combine '%d' and '%e'. Implement '%D', '%F', '%g', '%G', '%n', '%R', '%t', '%T', '%u', '%V', '%X', and '%z'. Avoid core dumps on valid inputs (maxsize == 0, or tim_p->tm_isdst > 1). --- newlib/libc/time/time.tex | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'newlib/libc/time/time.tex') diff --git a/newlib/libc/time/time.tex b/newlib/libc/time/time.tex index 5901857..4859404 100644 --- a/newlib/libc/time/time.tex +++ b/newlib/libc/time/time.tex @@ -18,28 +18,28 @@ the following fields: @table @code @item tm_sec -Seconds. +Seconds, between 0 and 60 inclusive (60 allows for leap seconds). @item tm_min -Minutes. +Minutes, between 0 and 59 inclusive. @item tm_hour -Hours. +Hours, between 0 and 23 inclusive. @item tm_mday -Day. +Day of the month, between 1 and 31 inclusive. @item tm_mon -Month. +Month, between 0 (January) and 11 (December). @item tm_year -Year (since 1900). +Year (since 1900), can be negative for earlier years. @item tm_wday -Day of week: the number of days since Sunday. +Day of week, between 0 (Sunday) and 6 (Saturday). @item tm_yday -Number of days elapsed since last January 1. +Number of days elapsed since last January 1, between 0 and 365 inclusive. @item tm_isdst Daylight Savings Time flag: positive means DST in effect, zero means DST -- cgit v1.1