方法有二:
1
$ influx -precision rfc333
2
$ influx
Connected to http://localhost:8086 version 0.xx.x
InfluxDB shell 0.xx.x
> precision rfc3339
> SELECT * FROM “logInfo” WHERE userName = ‘fastjrun’ and time > now() – 30m tz(‘Asia/Shanghai’)
name: logInfo
time userName viewTotal
—- ——– ———
2021-04-27T08:10:00.95+08:00 fastjrun 34922
2021-04-27T08:20:00.864+08:00 fastjrun 34922
2021-04-27T08:30:00.739+08:00 fastjrun 34922
评论区