diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-19 22:37:16 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-19 22:44:41 +0200 |
commit | f3ed2c0a825b4eb44245b7f108f2f292e666463b (patch) | |
tree | 305420894c04ccf77767f19433df0e173f5b382d /test | |
parent | 2c35ea92bd8e40ee66204e20b99f238effc4fc91 (diff) |
time/ISO8601: support omitting seconds
Diffstat (limited to 'test')
-rw-r--r-- | test/TestISO8601.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/TestISO8601.cxx b/test/TestISO8601.cxx index e97798831..6b2506cce 100644 --- a/test/TestISO8601.cxx +++ b/test/TestISO8601.cxx @@ -58,6 +58,10 @@ static constexpr struct { /* without time zone */ { "2019-02-04T16:46:41", 1549298801, std::chrono::seconds(1) }, + /* without seconds */ + { "2019-02-04T16:46", 1549298760, std::chrono::minutes(1) }, + { "2019-02-04T16:46Z", 1549298760, std::chrono::minutes(1) }, + /* with time zone */ { "2019-02-04T16:46:41+02", 1549291601, std::chrono::seconds(1) }, { "2019-02-04T16:46:41+0200", 1549291601, std::chrono::seconds(1) }, |