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 (1 時間の秒数) で割り、UTC オフセットを時間単位で取得します。

于 2012-05-25T12:13:07.137 に答える