当我调用SoftLayer_Metric_Tracking_Object::getSummaryData
时,它将返回一些带有时间戳的值,如:
{
'counter': 7591.0,
'type': 'privateIn_net_octet',
'dateTime': '2016-04-12T08: 00: 00+08: 00'
}
如图所示,"dateTime"
将给出一个时区,在本例中,时区是+8
,我通过shell命令“date-R”检查了服务器的时区,它显示:Tue, 03 May 2016 12:20:09 +0000
,时区是+0
。你知道吗
那么它如何知道应该使用哪个时区呢?你知道吗
时区取决于您的Softlayer用户的配置,您可以通过登录Softlayer的门户编辑时区并转到https://control.softlayer.com/account/user/profile并更改时区值。你知道吗
敬礼
相关问题 更多 >
编程相关推荐