Debian Codegraph @

test/command/suite/select/function/time/time_format/iso8601.expected

raw
1 plugin_register functions/time
2 [[0,0.0,0.0],true]
3 table_create Timestamps TABLE_PAT_KEY Time
4 [[0,0.0,0.0],true]
5 load --table Timestamps
6 [
7 {"_key": "2016-05-05 23:59:59.999999"},
8 {"_key": "2016-05-06 00:00:00.000000"},
9 {"_key": "2016-05-06 00:00:00.000001"},
10 {"_key": "2016-05-06 23:59:59.999999"},
11 {"_key": "2016-05-07 00:00:00.000000"},
12 {"_key": "2016-05-07 00:00:00.000001"}
13 ]
14 [[0,0.0,0.0],6]
15 select Timestamps --sortby _id --limit -1 --output_columns '_key, time_format(_key, "%Y-%m-%dT%H:%M:%S")'
16 [
17 [
18 0,
19 0.0,
20 0.0
21 ],
22 [
23 [
24 [
25 6
26 ],
27 [
28 [
29 "_key",
30 "Time"
31 ],
32 [
33 "time_format",
34 null
35 ]
36 ],
37 [
38 1462460399.999999,
39 "2016-05-05T23:59:59"
40 ],
41 [
42 1462460400.0,
43 "2016-05-06T00:00:00"
44 ],
45 [
46 1462460400.000001,
47 "2016-05-06T00:00:00"
48 ],
49 [
50 1462546799.999999,
51 "2016-05-06T23:59:59"
52 ],
53 [
54 1462546800.0,
55 "2016-05-07T00:00:00"
56 ],
57 [
58 1462546800.000001,
59 "2016-05-07T00:00:00"
60 ]
61 ]
62 ]
63 ]