mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 11:06:50 +01:00
added %F (microseconds) support to DateTimeFormatter/PatternFormatter/DateTimeParser
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// DateTimeFormatter.h
|
||||
//
|
||||
// $Id: //poco/Main/Foundation/include/Poco/DateTimeFormatter.h#3 $
|
||||
// $Id: //poco/Main/Foundation/include/Poco/DateTimeFormatter.h#4 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: DateTime
|
||||
@@ -94,6 +94,7 @@ public:
|
||||
/// * %S - second (00 .. 59)
|
||||
/// * %i - millisecond (000 .. 999)
|
||||
/// * %c - centisecond (0 .. 9)
|
||||
/// * %F - fractional seconds/microseconds (000000 - 999999)
|
||||
/// * %z - time zone differential in ISO 8601 format (Z or +NN.NN).
|
||||
/// * %Z - time zone differential in RFC format (GMT or +NNNN)
|
||||
/// * %% - percent sign
|
||||
@@ -123,6 +124,7 @@ public:
|
||||
/// * %s - total seconds (0 .. n)
|
||||
/// * %i - milliseconds (000 .. 999)
|
||||
/// * %c - centisecond (0 .. 9)
|
||||
/// * %F - fractional seconds/microseconds (000000 - 999999)
|
||||
/// * %% - percent sign
|
||||
|
||||
static void append(std::string& str, const Timestamp& timestamp, const std::string& fmt, int timeZoneDifferential = UTC);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PatternFormatter.h
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/include/Poco/PatternFormatter.h#3 $
|
||||
// $Id: //poco/Main/Foundation/include/Poco/PatternFormatter.h#4 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Logging
|
||||
@@ -85,6 +85,7 @@ class Foundation_API PatternFormatter: public Formatter
|
||||
/// * %S - message date/time second (00 .. 59)
|
||||
/// * %i - message date/time millisecond (000 .. 999)
|
||||
/// * %c - message date/time centisecond (0 .. 9)
|
||||
/// * %F - message date/time fractional seconds/microseconds (000000 - 999999)
|
||||
/// * %z - time zone differential in ISO 8601 format (Z or +NN.NN).
|
||||
/// * %Z - time zone differential in RFC format (GMT or +NNNN)
|
||||
/// * %[name] - the value of the message parameter with the given name
|
||||
|
||||
Reference in New Issue
Block a user