[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    strftime(4) manual page Table of Contents

Name

strftime - language specific strings

Description

Each locale has a printable file specifying date and time formatting information, /usr/lib/locale/locale/LC_TIME where locale is the locale name. These files specify:
1. abbreviated month names (in order)
2. full month names (in order)
3. abbreviated weekday names (in order)
4. full weekday names (in order)
5. string to specify local time representation (%X)
6. string to specify local date representation (%x)
7. string to specify local date and time (%c) for strftime() default
8. AM (ante meridian) string
9. PM (post meridian) string
10. string to specify local date and time (%C) for cftime() default

Each string is on a line by itself. All white space is significant. The order of the strings in the above list is the same order in which they must appear in the file.

Examples

/usr/lib/locale/C/LC_TIME
Jan
Feb
 . . .
January
February
 . . .
Sun
Mon
 . . .
Sunday
Monday
 . . .
%H:%M:%S
%m/%d/%y
%a %b %d %H:%M:%S %Y
AM
PM
%a %b %e %T %Z %Y

Files

/usr/lib/locale/locale/LC_TIME

See Also

ctime(3C) , setlocale(3C) , strftime(3C)

Notes

Do not change files under the C locale, as this could cause undefined or nonstandard behavior.


Table of Contents