Softlayer Api Softlayer\u Metric\u Tracking\u Object::getSummaryData如何知道时区?

2024-10-08 18:25:27 发布

您现在位置:Python中文网/ 问答频道 /正文

当我调用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。你知道吗

那么它如何知道应该使用哪个时区呢?你知道吗


Tags: 命令datetimenetobjecttypecounter时间shell

热门问题