summaryrefslogtreecommitdiffstats
path: root/tests/data/valid/dates-and-times
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:21:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-29 04:21:29 +0000
commit683f1f3ddde13390781318b9fe4a6841ea35d145 (patch)
treec21fddf99f2e5233bb3f22bbafd0d711fe7c5d95 /tests/data/valid/dates-and-times
parentInitial commit. (diff)
downloadpython-tomli-683f1f3ddde13390781318b9fe4a6841ea35d145.tar.xz
python-tomli-683f1f3ddde13390781318b9fe4a6841ea35d145.zip
Adding upstream version 2.0.1.upstream/2.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/data/valid/dates-and-times')
-rw-r--r--tests/data/valid/dates-and-times/datetimes.json4
-rw-r--r--tests/data/valid/dates-and-times/datetimes.toml2
-rw-r--r--tests/data/valid/dates-and-times/localtime.json2
-rw-r--r--tests/data/valid/dates-and-times/localtime.toml1
4 files changed, 9 insertions, 0 deletions
diff --git a/tests/data/valid/dates-and-times/datetimes.json b/tests/data/valid/dates-and-times/datetimes.json
new file mode 100644
index 0000000..99aca87
--- /dev/null
+++ b/tests/data/valid/dates-and-times/datetimes.json
@@ -0,0 +1,4 @@
+{
+ "local-dt": {"type":"datetime-local","value":"1988-10-27t01:01:01"},
+ "zulu-dt": {"type":"datetime","value":"1988-10-27t01:01:01z"}
+}
diff --git a/tests/data/valid/dates-and-times/datetimes.toml b/tests/data/valid/dates-and-times/datetimes.toml
new file mode 100644
index 0000000..cf84159
--- /dev/null
+++ b/tests/data/valid/dates-and-times/datetimes.toml
@@ -0,0 +1,2 @@
+local-dt=1988-10-27t01:01:01
+zulu-dt=1988-10-27t01:01:01z
diff --git a/tests/data/valid/dates-and-times/localtime.json b/tests/data/valid/dates-and-times/localtime.json
new file mode 100644
index 0000000..4d96abc
--- /dev/null
+++ b/tests/data/valid/dates-and-times/localtime.json
@@ -0,0 +1,2 @@
+{"t":
+ {"type":"time-local","value":"00:00:00.999999"}}
diff --git a/tests/data/valid/dates-and-times/localtime.toml b/tests/data/valid/dates-and-times/localtime.toml
new file mode 100644
index 0000000..87547c1
--- /dev/null
+++ b/tests/data/valid/dates-and-times/localtime.toml
@@ -0,0 +1 @@
+t=00:00:00.99999999999999 \ No newline at end of file