-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path1_datetime_parse_and_format.schema.json
104 lines (100 loc) · 4.02 KB
/
1_datetime_parse_and_format.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"parser_settings": {
"version": "omni.2.1",
"file_format_type": "xml"
},
"transform_declarations": {
"FINAL_OUTPUT": { "object": {
"no_tz_date": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "JustDate" },
{ "const": "", "_comment": "fromTZ" },
{ "const": "", "_comment": "toTZ" }
]
}},
"no_tz_date_time": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeWithNoTZ" },
{ "const": "", "_comment": "fromTZ" },
{ "const": "", "_comment": "toTZ" }
]
}},
"no_tz_date_time_use_from_tz": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeWithNoTZ" },
{ "const": "America/New_York", "_comment": "fromTZ" },
{ "const": "", "_comment": "toTZ" }
]
}},
"no_tz_date_time_use_to_tz": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeWithNoTZ" },
{ "const": "", "_comment": "fromTZ" },
{ "const": "America/Los_Angeles", "_comment": "toTZ" }
]
}},
"no_tz_date_time_use_both_from_and_to_tz": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeWithNoTZ" },
{ "const": "America/New_York", "_comment": "fromTZ" },
{ "const": "America/Los_Angeles", "_comment": "toTZ" }
]
}},
"utc_date_time": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeUTC" },
{ "const": "", "_comment": "fromTZ" },
{ "const": "", "_comment": "toTZ" }
]
}},
"utc_date_time_from_tz_ignored": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeUTC" },
{ "const": "America/Chicago", "_comment": "fromTZ" },
{ "const": "", "_comment": "toTZ" }
]
}},
"utc_date_time_use_to_tz": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeUTC" },
{ "const": "", "_comment": "fromTZ" },
{ "const": "America/Chicago", "_comment": "toTZ" }
]
}},
"iana_tz_date_time": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeWithIANA_TZ" },
{ "const": "", "_comment": "fromTZ" },
{ "const": "", "_comment": "toTZ" }
]
}},
"iana_tz_date_time_use_to_tz": { "custom_func": {
"name": "dateTimeToRFC3339",
"args": [
{ "xpath": "DateTimeWithIANA_TZ" },
{ "const": "", "_comment": "fromTZ" },
{ "const": "America/Los_Angeles", "_comment": "toTZ" }
]
}},
"custom_layout_day_before_month": { "custom_func": {
"name": "dateTimeLayoutToRFC3339",
"args": [
{ "xpath": "DayBeforeMonth" },
{ "const": "02/01/06T15:04:05", "_comment": "layout" },
{ "const": "false", "_comment": "layoutTZ" },
{ "const": "Pacific/Auckland", "_comment": "fromTZ" },
{ "const": "America/Los_Angeles", "_comment": "toTZ" }
]
}}
}}
}
}