diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-02-16 21:15:37 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-02-16 21:15:37 +0000 |
commit | f1d439fc641fb71c9cf1e32e6a06885f10dbabdc (patch) | |
tree | fcc480faf2d6f4108a7b8df49c71e35a2f8afa1e /newlib/libc/time/time.tex | |
parent | 031619634c6811e80c2abff69f4d74928091e6e6 (diff) | |
download | cygnal-f1d439fc641fb71c9cf1e32e6a06885f10dbabdc.tar.gz cygnal-f1d439fc641fb71c9cf1e32e6a06885f10dbabdc.tar.bz2 cygnal-f1d439fc641fb71c9cf1e32e6a06885f10dbabdc.zip |
2005-02-16 Eric Blake <ebb9@byu.net>
* 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).
Diffstat (limited to 'newlib/libc/time/time.tex')
-rw-r--r-- | newlib/libc/time/time.tex | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/newlib/libc/time/time.tex b/newlib/libc/time/time.tex index 59018575c..4859404a3 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 |