Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update accepted DateTimeType format #2362

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions concepts/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ For available Group functions and examples see [Configuration Guide](../configur

### DateTimeType

`DateTimeType` objects are parsed using Java's `SimpleDateFormat.parse()` using the first matching pattern:

1. `yyyy-MM-dd'T'HH:mm:ss.SSSZ`
1. `yyyy-MM-dd'T'HH:mm:ss.SSSz`
1. `yyyy-MM-dd'T'HH:mm:ss.SSSX`
1. `yyyy-MM-dd'T'HH:mm:ssz`
1. `yyyy-MM-dd'T'HH:mm:ss`
`DateTimeType` objects are parsed using Java's `DateTimeFormatter` with the first matching pattern:

1. `yyyy-MM-dd'T'HH:mm[:ss[.SSS]]Z` or `yyyy-MM-dd HH:mm[:ss[.SSS]]Z`
1. `yyyy-MM-dd'T'HH:mm[:ss[.SSS]]X` or `yyyy-MM-dd HH:mm[:ss[.SSS]]X`
1. `yyyy-MM-dd'T'HH:mm[:ss[.SSS]]z` or `yyyy-MM-dd HH:mm[:ss[.SSS]]z`
1. `yyyy-MM-dd'T'HH:mm[:ss[.SSS]]` or `yyyy-MM-dd HH:mm[:ss[.SSS]]`
1. `HH:mm[:ss[.SSS]]` with or without a timezone
1. A string of fewer than 12 digits as epoch in seconds
1. A string of 12 digits of more as epoch in milliseconds
1. `yyyy-MM-dd` with or without a timezone

| Literal | Standard | Example |
|---------|--------------------|---------------------------------------|
Expand Down