如何在gnuplot中设置时区? [英] How to set timezone in gnuplot?

查看:104
本文介绍了如何在gnuplot中设置时区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的gnuplot命令文件:

I have a simple gnuplot command file:

 ....
set xdata time
set timefmt "%s"
set format x "%H:%M"
....

其中x-时间戳列.

结果-时间采用UTC格式.我可以更改x轴的本地时区吗?

Result - time in UTC format. Can I change local timezome for x axis ?

推荐答案

今天在文档中碰到了这一点:

Just came across this in the docs today:

秒数与秒数之间的转换均假设世界标准时间(相同 作为格林威治标准时间).没有更改时间的规定 区域或夏令时.如果您所有的数据都指向同一时区 (无论是白天还是标准),您都不必担心这些 事物.但是,如果绝对时间对您的应用至关重要,那么您将 需要自己转换为UT.

The conversion to and from seconds assumes Universal Time (which is the same as Greenwich Standard Time). There is no provision for changing the time zone or for daylight savings. If all your data refer to the same time zone (and are all either daylight or standard) you don't need to worry about these things. But if the absolute time is crucial for your application, you'll need to convert to UT yourself.

来自help time/date

这篇关于如何在gnuplot中设置时区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆