| 1 |
plugin_register functions/time |
| 2 |
|
| 3 |
table_create Records TABLE_NO_KEY |
| 4 |
column_create Records timestamps COLUMN_VECTOR Time |
| 5 |
|
| 6 |
load --table Records |
| 7 |
[ |
| 8 |
{"timestamps": ["2016-04-30 23:59:59.999999"]}, |
| 9 |
{"timestamps": ["2016-05-01 00:00:00.000000"]}, |
| 10 |
{"timestamps": ["2016-05-01 00:00:00.000001"]}, |
| 11 |
{"timestamps": ["2016-05-07 23:59:59.999999"]}, |
| 12 |
{"timestamps": ["2016-05-08 00:00:00.000000"]}, |
| 13 |
{"timestamps": ["2016-05-08 00:00:00.000001"]} |
| 14 |
] |
| 15 |
|
| 16 |
select Records \ |
| 17 |
--sort_keys _id \ |
| 18 |
--limit -1 \ |
| 19 |
--output_columns 'timestamps, time_classify_week(timestamps)' |