Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,30 @@ birth_date:date |bd:date
1964-06-02T00:00:00.000Z|1964-06-02T00:00:00.000Z
;

convert with zones
ROW str = "2025-04-11T05:00:00+0400"
| EVAL dt = TO_DATETIME(str);

str:String | dt:datetime
"2025-04-11T05:00:00+0400" | 2025-04-11T01:00:00.000Z
;

equality with zones
ROW dt = TO_DATETIME("2025-04-11T01:00:00.000Z")
| EVAL bool = "2025-04-11T05:00:00+0400" == dt;

dt:datetime | bool:boolean
2025-04-11T01:00:00.000Z | true
;

convert no zone
ROW str = "2025-04-11T05:00:00.000"
| EVAL dt = TO_DATETIME(str);

str:String | dt:datetime
"2025-04-11T05:00:00.000" | 2025-04-11T05:00:00.000Z
;

convertFromString#[skip:-8.13.99, reason: default date formatter is changed in 8.14]
// tag::to_datetime-str[]
ROW string = ["1953-09-02T00:00:00.000Z", "1964-06-02T00:00:00.000Z", "1964-06-02 00:00:00"]
Expand Down