trunk/branch integration: DateTimeFormatter %s

This commit is contained in:
Marian Krivos
2011-08-23 06:41:06 +00:00
parent a3b91b8571
commit b8f2fe9efe

View File

@@ -89,16 +89,17 @@ public:
/// * %H - hour (00 .. 23) /// * %H - hour (00 .. 23)
/// * %h - hour (00 .. 12) /// * %h - hour (00 .. 12)
/// * %a - am/pm /// * %a - am/pm
/// * %A - AM/PM /// * %A - AM/PM
/// * %M - minute (00 .. 59) /// * %M - minute (00 .. 59)
/// * %S - second (00 .. 59) /// * %S - second (00 .. 59)
/// * %i - millisecond (000 .. 999) /// * %s - seconds and microseconds (equivalent to %S.%F)
/// * %c - centisecond (0 .. 9) /// * %i - millisecond (000 .. 999)
/// * %F - fractional seconds/microseconds (000000 - 999999) /// * %c - centisecond (0 .. 9)
/// * %z - time zone differential in ISO 8601 format (Z or +NN.NN). /// * %F - fractional seconds/microseconds (000000 - 999999)
/// * %Z - time zone differential in RFC format (GMT or +NNNN) /// * %z - time zone differential in ISO 8601 format (Z or +NN.NN)
/// * %% - percent sign /// * %Z - time zone differential in RFC format (GMT or +NNNN)
/// /// * %% - percent sign
///
/// Class DateTimeFormat defines format strings for various standard date/time formats. /// Class DateTimeFormat defines format strings for various standard date/time formats.
static std::string format(const DateTime& dateTime, const std::string& fmt, int timeZoneDifferential = UTC); static std::string format(const DateTime& dateTime, const std::string& fmt, int timeZoneDifferential = UTC);