1

这是我的链接:

http://timezonedb.com/download

 timezone.csv
 Fields: "zone_id","abbreviation","time_start","gmt_offset","dst"


"370","CDT","-273686400","-18000","1"    
"370","EST","-266432400","-18000","0"
"370","EDT","-52938000","-14400","1"    
"370","EST","-37216800","-18000","0"
"370","EDT","-21488400","-14400","1"
"370","EST","-5767200","-18000","0"
"370","EDT","9961200","-14400","1"
"370","EST","25682400","-18000","0"
"370","EDT","41410800","-14400","1"
"370","EST","57736800","-18000","0"

正如你所看到的,它给出了与时间相关的数据作为一个大数字,我怎样才能将它转换为格式“utc + 5:30”小时......
谢谢

4

1 回答 1

1

除以 3600(一小时的秒数)得到 UTC 偏移量(以小时为单位)

于 2012-05-25T12:13:07.137 回答