| 1 |
plugin_register functions/time |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Logs TABLE_NO_KEY |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Logs case COLUMN_SCALAR ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Logs created_at COLUMN_SCALAR Time |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Logs created_at_text COLUMN_SCALAR ShortText |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
load --table Logs |
| 12 |
[ |
| 13 |
{"case": "timezone: Z", "created_at": "2000-01-01T10:00:00Z", "created_at_text": "2000-01-01T10:00:00Z"}, |
| 14 |
{"case": "timezone: z", "created_at": "2000-01-01t10:00:00z", "created_at_text": "2000-01-01T10:00:00z"}, |
| 15 |
{"case": "timezone: 00:00", "created_at": "2000-01-01T10:00:00+00:00", "created_at_text": "2000-01-01T10:00:00+00:00"}, |
| 16 |
{"case": "timezone: +01:01", "created_at": "2000-01-01T11:01:00+01:01", "created_at_text": "2000-01-01T11:01:00+01:01"}, |
| 17 |
{"case": "timezone: +11:11", "created_at": "2000-01-01T21:11:00+11:11", "created_at_text": "2000-01-01T21:11:00+11:11"}, |
| 18 |
{"case": "timezone: -01:01", "created_at": "2000-01-01T08:59:00-01:01", "created_at_text": "2000-01-01T08:59:00-01:01"}, |
| 19 |
{"case": "timezone: -11:11", "created_at": "1999-12-31T22:49:00-11:11", "created_at_text": "1999-12-31T22:49:00-11:11"}, |
| 20 |
{"case": "timezone hour threshold: +23:00", "created_at": "2000-01-02T09:00:00+23:00", "created_at_text": "2000-01-02T09:00:00+23:00"}, |
| 21 |
{"case": "timezone minute threshold: +00:59", "created_at": "2000-01-01T10:59:00+00:59", "created_at_text": "2000-01-01T10:59:00+00:59"}, |
| 22 |
{"case": "timezone omitting minute: +01", "created_at": "2000-01-01T11:00:00+01", "created_at_text": "2000-01-01T11:00:00+01"}, |
| 23 |
{"case": "timezone omitting minute: -01", "created_at": "2000-01-01T09:00:00-01", "created_at_text": "2000-01-01T09:00:00-01"}, |
| 24 |
{"case": "timezone: localtime", "created_at": "2000-01-01T19:00:00", "created_at_text": "2000-01-01T19:00:00"}, |
| 25 |
{"case": "compatible: date delimiter: /", "created_at": "2000/01/01T10:00:00Z", "created_at_text": "2000/01/01T10:00:00Z"}, |
| 26 |
{"case": "decimal", "created_at": "2000-01-01T11:01:00.123+01:01", "created_at_text": "2000-01-01T11:01:00.123+01:01"} |
| 27 |
] |
| 28 |
[[0,0.0,0.0],14] |
| 29 |
select Logs --limit -1 --output_columns "case, time_format_iso8601(created_at), created_at_text" |
| 30 |
[ |
| 31 |
[ |
| 32 |
0, |
| 33 |
0.0, |
| 34 |
0.0 |
| 35 |
], |
| 36 |
[ |
| 37 |
[ |
| 38 |
[ |
| 39 |
14 |
| 40 |
], |
| 41 |
[ |
| 42 |
[ |
| 43 |
"case", |
| 44 |
"ShortText" |
| 45 |
], |
| 46 |
[ |
| 47 |
"time_format_iso8601", |
| 48 |
null |
| 49 |
], |
| 50 |
[ |
| 51 |
"created_at_text", |
| 52 |
"ShortText" |
| 53 |
] |
| 54 |
], |
| 55 |
[ |
| 56 |
"timezone: Z", |
| 57 |
"2000-01-01T19:00:00.000000+09:00", |
| 58 |
"2000-01-01T10:00:00Z" |
| 59 |
], |
| 60 |
[ |
| 61 |
"timezone: z", |
| 62 |
"2000-01-01T19:00:00.000000+09:00", |
| 63 |
"2000-01-01T10:00:00z" |
| 64 |
], |
| 65 |
[ |
| 66 |
"timezone: 00:00", |
| 67 |
"2000-01-01T19:00:00.000000+09:00", |
| 68 |
"2000-01-01T10:00:00+00:00" |
| 69 |
], |
| 70 |
[ |
| 71 |
"timezone: +01:01", |
| 72 |
"2000-01-01T19:00:00.000000+09:00", |
| 73 |
"2000-01-01T11:01:00+01:01" |
| 74 |
], |
| 75 |
[ |
| 76 |
"timezone: +11:11", |
| 77 |
"2000-01-01T19:00:00.000000+09:00", |
| 78 |
"2000-01-01T21:11:00+11:11" |
| 79 |
], |
| 80 |
[ |
| 81 |
"timezone: -01:01", |
| 82 |
"2000-01-01T19:00:00.000000+09:00", |
| 83 |
"2000-01-01T08:59:00-01:01" |
| 84 |
], |
| 85 |
[ |
| 86 |
"timezone: -11:11", |
| 87 |
"2000-01-01T19:00:00.000000+09:00", |
| 88 |
"1999-12-31T22:49:00-11:11" |
| 89 |
], |
| 90 |
[ |
| 91 |
"timezone hour threshold: +23:00", |
| 92 |
"2000-01-01T19:00:00.000000+09:00", |
| 93 |
"2000-01-02T09:00:00+23:00" |
| 94 |
], |
| 95 |
[ |
| 96 |
"timezone minute threshold: +00:59", |
| 97 |
"2000-01-01T19:00:00.000000+09:00", |
| 98 |
"2000-01-01T10:59:00+00:59" |
| 99 |
], |
| 100 |
[ |
| 101 |
"timezone omitting minute: +01", |
| 102 |
"2000-01-01T19:00:00.000000+09:00", |
| 103 |
"2000-01-01T11:00:00+01" |
| 104 |
], |
| 105 |
[ |
| 106 |
"timezone omitting minute: -01", |
| 107 |
"2000-01-01T19:00:00.000000+09:00", |
| 108 |
"2000-01-01T09:00:00-01" |
| 109 |
], |
| 110 |
[ |
| 111 |
"timezone: localtime", |
| 112 |
"2000-01-01T19:00:00.000000+09:00", |
| 113 |
"2000-01-01T19:00:00" |
| 114 |
], |
| 115 |
[ |
| 116 |
"compatible: date delimiter: /", |
| 117 |
"2000-01-01T19:00:00.000000+09:00", |
| 118 |
"2000/01/01T10:00:00Z" |
| 119 |
], |
| 120 |
[ |
| 121 |
"decimal", |
| 122 |
"2000-01-01T19:00:00.123000+09:00", |
| 123 |
"2000-01-01T11:01:00.123+01:01" |
| 124 |
] |
| 125 |
] |
| 126 |
] |
| 127 |
] |