498
498
evalDateParseWithTimezone
499
499
required_capability: date_parse_tz
500
500
row s = "12/Jul/2022:10:24:10 +0900" | eval d = date_parse("dd/MMM/yyyy:HH:mm:ss Z", s);
501
+ warningRegex:Date format \[dd/MMM/yyyy:HH:mm:ss Z\] contains textual field specifiers that could change in JDK 23.*
501
502
502
503
s:keyword | d:datetime
503
504
12/Jul/2022:10:24:10 +0900 | 2022-07-12T01:24:10.000Z
@@ -506,6 +507,7 @@ s:keyword | d:datetime
506
507
evalDateParseWithTimezoneCrossingDayBoundary
507
508
required_capability: date_parse_tz
508
509
row s = "12/Jul/2022:08:24:10 +0900" | eval d = date_parse("dd/MMM/yyyy:HH:mm:ss Z", s);
510
+ warningRegex:Date format \[dd/MMM/yyyy:HH:mm:ss Z\] contains textual field specifiers that could change in JDK 23.*
509
511
510
512
s:keyword | d:datetime
511
513
12/Jul/2022:08:24:10 +0900 | 2022-07-11T23:24:10.000Z
@@ -518,6 +520,8 @@ row s1 = "12/Jul/2022:10:24:10 +0900", s2 = "2022/12/07 09:24:10 +0800"
518
520
| eval eq = d1 == d2
519
521
| keep d1, eq
520
522
;
523
+ warningRegex:Date format \[dd/MMM/yyyy:HH:mm:ss Z\] contains textual field specifiers that could change in JDK 23.*
524
+ warningRegex:Date format \[yyyy/dd/MM HH:mm:ss Z\] contains textual field specifiers that could change in JDK 23.*
521
525
522
526
d1:datetime | eq:boolean
523
527
2022-07-12T01:24:10.000Z | true
@@ -530,6 +534,7 @@ row s = "2022/12/07 09:24:10", format="yyyy/dd/MM HH:mm:ss"
530
534
| eval with_tz = date_parse(concat(format, " Z"), concat(s, " +0900"))
531
535
| keep s, no_tz, with_tz
532
536
;
537
+ warningRegex:Date format \[yyyy/dd/MM HH:mm:ss Z\] contains textual field specifiers that could change in JDK 23.*
533
538
534
539
s:keyword | no_tz:datetime | with_tz:datetime
535
540
2022/12/07 09:24:10 | 2022-07-12T09:24:10.000Z | 2022-07-12T00:24:10.000Z
@@ -544,6 +549,7 @@ row s = "2022/12/07 09:24:10", format="yyyy/dd/MM HH:mm:ss"
544
549
| eval with_tz4 = date_parse(concat(format, " O"), concat(s, " GMT+9"))
545
550
| keep s, with_tz*
546
551
;
552
+ warningRegex:Date format \[yyyy/dd/MM HH:mm:ss .\] contains textual field specifiers that could change in JDK 23.*
547
553
548
554
s:keyword | with_tz1:datetime | with_tz2:datetime | with_tz3:datetime | with_tz4:datetime
549
555
2022/12/07 09:24:10 | 2022-07-12T00:24:10.000Z | 2022-07-12T00:24:10.000Z | 2022-07-12T00:24:10.000Z | 2022-07-12T00:24:10.000Z
0 commit comments