-
SetTimeZoneInformation
鎖定
SetTimeZoneInformation是在一個TIME_ZONE_INFORMATION結構中載入與系統時區設置有關的信息。
- 外文名
- SetTimeZoneInformation
- 所屬分類
- 程序指令
SetTimeZoneInformation聲明
Declare Function GetTimeZoneInformation Lib "kernel32" Alias "GetTimeZoneInformation" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As Long
[1]
SetTimeZoneInformation説明
在一個TIME_ZONE_INFORMATION結構中載入與系統時區設置有關的信息
SetTimeZoneInformation返回值
Long,下述常數之一: | |
TIME_ZONE_ID_INVALID | 函數執行失敗,會設置GetLastError |
TIME_ZONE_ID_UNKNOWN | 時區未知(可能仍然指定了bias值) |
TIME_ZONE_ID_STANDARD | 標準時間有效 |
TIME_ZONE_ID_DAYLIGHT | 夏令時有效 |
SetTimeZoneInformation參數表
參數 | 類型及説明 |
lpTimeZoneInformation | TIME_ZONE_INFORMATION,用於載入時區信息的結構 |
SetTimeZoneInformation註解
在lpTimeZoneInformation結構中為本地時間添加bias信息,從而獲得系統時間。TIME_ZONE_INFORMATION結構內部的DaylightName和StandardName字串肯定採用Unicode格式。
- 參考資料
-
- 1. GetTimeZoneInformation 介紹 .VB世界[引用日期2012-09-05]
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:5次歷史版本
- 最近更新: 江东231