Debian Codegraph @

test/command/suite/select/function/time/time_classify_month/default.test

raw
1 plugin_register functions/time
2
3 table_create Timestamps TABLE_PAT_KEY Time
4
5 load --table Timestamps
6 [
7 {"_key": 0},
8 {"_key": "2016-04-30 23:59:59.999999"},
9 {"_key": "2016-05-01 00:00:00.000000"},
10 {"_key": "2016-05-01 00:00:00.000001"},
11 {"_key": "2016-05-31 23:59:59.999999"},
12 {"_key": "2016-06-01 00:00:00.000000"},
13 {"_key": "2016-06-01 00:00:00.000001"}
14 ]
15
16 select Timestamps \
17 --sortby _id \
18 --limit -1 \
19 --output_columns '_key, time_classify_month(_key)'