mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add GncDateTime::timestamp().
To provide a C++ implementation of gnc_date_timestamp and to avoid using the expensive and localized GncDateTime::format().
This commit is contained in:
@@ -152,7 +152,11 @@ public:
|
||||
* @return a std::string in the format YYYY-MM-DD HH:MM:SS.
|
||||
*/
|
||||
std::string format_iso8601() const;
|
||||
|
||||
/** Get an undelimited string representing the current date and time.
|
||||
* @return a std::string in the format YYYYMMDDHHMMSS.
|
||||
*/
|
||||
static std::string timestamp();
|
||||
|
||||
private:
|
||||
std::unique_ptr<GncDateTimeImpl> m_impl;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user