| 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 created_at COLUMN_SCALAR Time |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Logs created_at_text COLUMN_SCALAR ShortText |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Logs |
| 10 |
[ |
| 11 |
{"created_at": "2000-01-01", "created_at_text": "2000-01-01"} |
| 12 |
] |
| 13 |
[[0,0.0,0.0],1] |
| 14 |
select Logs --output_columns "time_format_iso8601(created_at), created_at_text" |
| 15 |
[ |
| 16 |
[ |
| 17 |
0, |
| 18 |
0.0, |
| 19 |
0.0 |
| 20 |
], |
| 21 |
[ |
| 22 |
[ |
| 23 |
[ |
| 24 |
1 |
| 25 |
], |
| 26 |
[ |
| 27 |
[ |
| 28 |
"time_format_iso8601", |
| 29 |
null |
| 30 |
], |
| 31 |
[ |
| 32 |
"created_at_text", |
| 33 |
"ShortText" |
| 34 |
] |
| 35 |
], |
| 36 |
[ |
| 37 |
"2000-01-01T00:00:00.000000+09:00", |
| 38 |
"2000-01-01" |
| 39 |
] |
| 40 |
] |
| 41 |
] |
| 42 |
] |