Tools.h++ Manual

21-136 104011 Tandem Computers Incorporated
21
allowed. Returns
TRUE
for a valid integer,
FALSE
for an error. If it returns
FALSE
, the
long*
argument is untouched. All valid numeric strings are
accepted; all others are rejected. The following are examples of valid integral
strings in an English-speaking locale:
“1” “ -02. “ “+ 1,234”
“1234545” “1,234,567”
Table 21-2 lists formatting characters used by
strftime()
. Examples are
given (in parenthesis). For those formats that do not use all members of the
struct tm, only those members that are actually used are noted [in brackets].
Table 21-2
Format
character Meaning Example
a
Abbreviated weekday name [from
tm::tm_wday
]
Sun
A
Full weekday name [from tm::
tm_wday
]
Sunday
b
Abbreviated month name
Feb
B
Full month name
February
c
Date and time [may use all members]
Feb 29 14:34:56 1984
C
Long date and time. Available only in implementations where
“%C” is permitted as a
strftime()
format argument.
Sunday, February 29
14:34:56 1984
d
Day of the month
29
H
Hour of the 24-hour day
14
I
Hour of the 12-hour day
02
j
Day of the year, from 001 [from
tm::tm_yday
]
60
m
Month of the year, from 01
02
M
Minutes after the hour
34
p
AM/PM indicator, if any
AM
S
Seconds after the minute
56
U
Sunday week of the year, from 00 [from
tm::tm_yday
and
tm::tm_wday
]
w
Day of the week, with 0 for Sunday
0
W
Monday week of the year, from 00 [from
tm::tm_yday
and
tm::tm_wday
]