如何将Apache IoTDB中的时间更改为时间戳格式?

huangapple go评论59阅读模式
英文:

How to change the time in Apache IoTDB to timestamp format?

问题

目前,Apache IoTDB的“time”列看起来像“2023-02-08T11: 25:15.953+08:00”。有没有办法将此处的时间显示为时间戳?

我查看了官方文档,它只说时间可以显示为“Long”类型,但没有找到此更改的示例。有人能告诉我如何做到这一点吗?

英文:

Currently, the "time" column of Apache IoTDB looks like "2023-02-08T11: 25:15.953+08:00". Is there any way to make the time here displayed as a timestamp?

I checked the official document, and it only says that the time can be displayed as Long
type, but no example of this change can be found. Anyone can tell me how to do this?

答案1

得分: 0

如果您想显示时间戳或其他可读格式,可以在 Apache IoTDB 的启动命令中添加参数 -disableISO8601。例如:$IOTDB_CLI_HOME/sbin/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root -disableISO8601

英文:

If you want to display timestamps or other readable formats, you can add the parameter -disableISO8601 to the startup command of Apache IoTDB. For example: $IOTDB_CLI_HOME/sbin/start-cli.sh -h 127.0.0.1 -p 6667 -u root -pw root -disableISO8601.

huangapple
  • 本文由 发表于 2023年7月11日 11:28:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76658540.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定