Tools.h++ Class Reference

Table Of Contents
(optional) sign, and at the end. Digit group separators are 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 1. 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].
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
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]
x Date [uses tm::tm_yday in some locales] Feb 29 1984
X Time 14:34:56