diff options
author | Max Kellermann <mk@cm4all.com> | 2019-09-02 17:13:54 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-09-25 21:39:25 +0200 |
commit | d7dbf47a3f344ba0384f4e7383700d13eacdc5d3 (patch) | |
tree | bd5f92af1b7bfe5624abb623297fb775fedb1919 /test | |
parent | 3db584a3ea749d92b516914f015bd371879ef67c (diff) |
time/ISO8601: support omitting minutes
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 6b2506cce..3305b47de 100644 --- a/test/TestISO8601.cxx +++ b/test/TestISO8601.cxx @@ -62,6 +62,10 @@ static constexpr struct { { "2019-02-04T16:46", 1549298760, std::chrono::minutes(1) }, { "2019-02-04T16:46Z", 1549298760, std::chrono::minutes(1) }, + /* without minutes */ + { "2019-02-04T16", 1549296000, std::chrono::hours(1) }, + { "2019-02-04T16Z", 1549296000, std::chrono::hours(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) }, |