[AB-xxx] adding exceptions for instant parsing

adding @time hint to duration parse exception text
changing duration formatting to be able to handle negative durations
This commit is contained in:
Sheldan
2026-02-15 22:46:21 +01:00
parent de7ec74033
commit 516762c7ed
4 changed files with 9 additions and 2 deletions

View File

@@ -1 +1,2 @@
Invalid time format: ${invalidFormat}. Valid formats are ${validFormats}. Beware to not use a space between the number and the unit.
Invalid time format: ${invalidFormat}. Valid formats are ${validFormats}. Do not use a space between the number and the unit.
Alternatively, you can use `@time: <duration description>` to define a duration.

View File

@@ -0,0 +1 @@
Invalid format for timestamp. Either use epoch seconds (see [here](https://www.unixtimestamp.com/)) or use `@time: <time>`.