b*****e 发帖数: 762 | 1 现在想用vb编写一个小程序运行在全美任何电脑上获得北京时间。是不是要得到现在本
机所处的时区,然后根据系统时
间即可推出北京时间。但是有的时候系统处在夏令时地区和状态下。这个时候要获得系
统的夏令时状态才能得出正确的
北京时间来。但是不是windows要连上网跟时钟服务器同步的时候才能获得哪天开始是
夏令时吧?或者有没有什么办法
直接获得global的时间呢?
按照timeanddate.com的说法,夏令时适用于以下的地区。
EDT is used in the summer in these US states (EST during winter)
Connecticut
Delaware
District of Columbia
Florida - Southern/Eastern parts
except Bay, Calhoun, Escambia, Holmes, Jackson, Okaloosa, Santa Rosa,
Walton and Washington counties
and norther Gulf county - look in CST/CDT
Georgia
Indiana - all except for these north-western counties near Chicago (Lake
, Porter, La Porte, Newton,
Jasper, Starke) and these south-western counties in Indiana near Evansville
Gibson, Posey, Vanderburgh, Warrick, Perry
Kentucky - eastern parts
counties of Anderson, Bath, Bell, Boone, Bourbon, Boyd, Boyle, Bracken,
Breathitt, Bullitt, Campbell,
Carroll, Carter, Casey, Clark, Clay, Elliott, Estill, Fayette, Fleming,
Floyd, Franklin, Gallatin, Garrard, Grant,
Greenup, Hancock, Hansock, Hardin, Harlan, Harrison, Henry, Jackson,
Jefferson, Jessamine, Johnson,
Kenton, Knott, Knox, Larue, Laurel, Lawrence, Lee, Leslie, Letcher, Lewis,
Lincoln, Madison, Magoffin,
Marion, Martin, Mason, McCreary, Meade, Menifee, Mercer, Montgomery, Morgan,
Nelson, Nicholas,
Oldham, Owen, Owsley, Pendleton, Perry, Pike, Powell, Pulaski, Robertson,
Rockcastle, Rowan, Scott, Shelby,
Spencer, Taylor, Trimble, Washington, Wayne, Whitley, Wolfe, Woodford
Maine
Maryland
Massachusetts
Michigan - most except these western counties
Dickinson, Gogebic, Iron, and Menominee - which are on CST/CDT
New Hampshire
New Jersey
New York
North Carolina
Ohio
Pennsylvania
Rhode Island
South Carolina
Tennessee - eastern counties
Anderson, Blount, Bradley, Campbell, Carter, Claiborne, Cocke, Grainger,
Greene, Hamblen, Hamilton,
Hancock, Hawkins, Jefferson, Johnson, Knox, Loudon, McMinn, Meigs, Monroe,
Morgan, Polk, Rhea, Roane,
Scott, Sevier, Sullivan, Unicoi, Union, and Washington
Vermont
Virginia
West Virginia
EDT is used during summer in these Canadian provinces (EST during winter)
Nunavut - most of it
except Kugluktuk, Cambridge Bay - CST/CDT and Southampton Island (Coral
Harbor) EST all year
Ontario - most parts east of 90 West and two communities west of 90 West
Shebandowan, Upsala
Quebec - most of it
except East of 63 West, Blanc Sablon which observe AST all year
Time zone maps are under development and will be available later |
|