diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-19 22:37:16 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-12-16 23:24:43 +0100 |
commit | d09bd9178f30e9e8bb1034efec7d713f53e924df (patch) | |
tree | cbe3d7ca16d65d5d152e0605b7f4924d8129f02b /test | |
parent | 7d8b1860c315ca403560385d6b426877f2e8e46b (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) }, |