From d7e34ad2401b41b4f582fb3212de4597f3e63718 Mon Sep 17 00:00:00 2001 From: clarasb Date: Wed, 17 Dec 2025 17:08:30 +0100 Subject: [PATCH 1/3] =?UTF-8?q?add=20ms,=20=C2=B5s=20and=20ns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xrlint/plugins/core/rules/time_coordinate.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xrlint/plugins/core/rules/time_coordinate.py b/xrlint/plugins/core/rules/time_coordinate.py index 1fc39f6..c09603a 100644 --- a/xrlint/plugins/core/rules/time_coordinate.py +++ b/xrlint/plugins/core/rules/time_coordinate.py @@ -35,12 +35,21 @@ "second", "sec", "s", + "milliseconds", + "millisecond", + "ms", + "microseconds", + "microsecond", + "µs", + "nanoseconds", + "nanosecond", + "ns", ) _ALL_UNITS_OF_TIME = (*_AMBIGUOUS_UNITS_OF_TIME, *_UNAMBIGUOUS_UNITS_OF_TIME) _RE_DATE = re.compile(r"^\d{4}-\d{1,2}-\d{1,2}$") -_RE_TIME = re.compile(r"^\d{1,2}:\d{1,2}:\d{1,2}(\.\d{1,6})?$") +_RE_TIME = re.compile(r"^\d{1,2}:\d{1,2}:\d{1,2}(\.\d{1,9})?$") _RE_TZ = re.compile(r"^[+-]\d{1,2}:\d{1,2}$") From 981ed2949afc55c74b8e5be39f310c34d9340d6c Mon Sep 17 00:00:00 2001 From: clarasb Date: Wed, 17 Dec 2025 17:22:22 +0100 Subject: [PATCH 2/3] update CHANGES.md and set version 0.5.2.dev0 --- CHANGES.md | 6 ++++++ xrlint/version.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 762db7e..5b98a01 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ # XRLint Change History +## Version 0.5.2 (in development) + +### Adjustments and Enhancements + +- Core rule 'time-coordinates' now support ms, µs and ns. (#66) + ## Version 0.5.1 (from 2025-02-21) - XRLint now also loads default configuration from files named diff --git a/xrlint/version.py b/xrlint/version.py index 396151f..52424ff 100644 --- a/xrlint/version.py +++ b/xrlint/version.py @@ -2,4 +2,4 @@ # This software is distributed under the terms and conditions of the # MIT license (https://mit-license.org/). -version = "0.5.1" +version = "0.5.2.dev0" From a7de3d0f31e896f974e3db0f3a0c0d86a771737a Mon Sep 17 00:00:00 2001 From: clarasb Date: Wed, 7 Jan 2026 15:27:02 +0100 Subject: [PATCH 3/3] update rule version --- xrlint/plugins/core/rules/time_coordinate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrlint/plugins/core/rules/time_coordinate.py b/xrlint/plugins/core/rules/time_coordinate.py index c09603a..daeb784 100644 --- a/xrlint/plugins/core/rules/time_coordinate.py +++ b/xrlint/plugins/core/rules/time_coordinate.py @@ -55,7 +55,7 @@ @plugin.define_rule( "time-coordinate", - version="1.0.0", + version="1.0.1", type="problem", description=( "Time coordinates should have valid and unambiguous time units encoding."