ASPN ActiveState Programmer Network
  ASPN
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.2
Python for Win32 Extensions Help
Win32 API
Modules
win32api
AbortSystemShutdown
Apply
Beep
BeginUpdateResource
ClipCursor
CloseHandle
CopyFile
DebugBreak
DeleteFile
DragFinish
DragQueryFile
DuplicateHandle
EndUpdateResource
EnumResourceLanguages
EnumResourceNames
EnumResourceTypes
ExitWindows
ExitWindowsEx
ExpandEnvironmentStrings
FindCloseChangeNotification
FindExecutable
FindFiles
FindFirstChangeNotification
FindNextChangeNotification
FormatMessage
FormatMessageW
FreeLibrary
GenerateConsoleCtrlEvent
GetAsyncKeyState
GetCommandLine
GetComputerName
GetConsoleTitle
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetCursorPos
GetDiskFreeSpace
GetDiskFreeSpaceEx
GetDomainName
GetEnvironmentVariable
GetFileAttributes
GetFileVersionInfo
GetFocus
GetFullPathName
GetKeyState
GetLastError
GetLocalTime
GetLogicalDriveStrings
GetLogicalDrives
GetLongPathName
GetLongPathNameW
GetModuleFileName
GetModuleHandle
GetProcAddress
GetProfileSection
GetProfileVal
GetShortPathName
GetStdHandle
GetSysColor
GetSystemDefaultLCID
GetSystemDefaultLangID
GetSystemDirectory
GetSystemInfo
GetSystemMetrics
GetSystemTime
GetTempFileName
GetTempPath
GetThreadLocale
GetTickCount
GetTimeZoneInformation
GetUserDefaultLCID
GetUserDefaultLangID
GetUserName
GetUserNameEx
GetVersion
GetVersionEx
GetVolumeInformation
GetWindowLong
GetWindowsDirectory
HIBYTE
HIWORD
InitiateSystemShutdown
LOBYTE
LOWORD
LoadCursor
LoadLibrary
LoadLibraryEx
LoadResource
LoadString
MAKELANGID
MessageBeep
MessageBox
MoveFile
MoveFileEx
OpenProcess
OutputDebugString
PostMessage
PostQuitMessage
PostThreadMessage
RGB
RegCloseKey
RegConnectRegistry
RegCreateKey
RegDeleteKey
RegDeleteValue
RegEnumKey
RegEnumKey
RegEnumValue
RegFlushKey
RegGetKeySecurity
RegLoadKey
RegNotifyChangeKeyValue
RegOpenKey
RegOpenKeyEx
RegQueryInfoKey
RegQueryValue
RegQueryValueEx
RegSaveKey
RegSetKeySecurity
RegSetValue
RegSetValueEx
RegUnLoadKey
RegisterWindowMessage
SearchPath
SendMessage
SetClassLong
SetClassWord
SetConsoleTitle
SetCursor
SetCursorPos
SetErrorMode
SetFileAttributes
SetStdHandle
SetSystemTime
SetThreadLocale
SetWindowLong
SetWindowWord
ShellExecute
ShowCursor
Sleep
TerminateProcess
Unicode
UpdateResource
WinExec
WinHelp
WriteProfileSection
WriteProfileVal
keybd event
mouse event

MyASPN >> Reference >> ActivePython 2.2 >> Python for Win32 Extensions Help >> Win32 API >> Modules >> win32api

win32api.GetTimeZoneInformation

tuple = GetTimeZoneInformation()

Retrieves the system time-zone information.

Return Value

The return value is a tuple of (rc, tzinfo), where rc is the integer return code from ::GetTimezoneInformation(), which may be

value description


TIME_ZONE_ID_STANDARDif in standard time
TIME_ZONE_ID_DAYLIGHTif in daylight savings time
TIME_ZONE_ID_UNKNOWNif the timezone in question doesn't use daylight savings time, (eg. indiana time).
tzinfo is a tuple of:

Items

[0] int : bias

Specifies the current bias, in minutes, for local time translation on this computer. The bias is the difference, in minutes, between Coordinated Universal Time (UTC) and local time. All translations between UTC and local time are based on the following formula:

UTC = local time + bias

[1] unicode : standardName

Specifies a string associated with standard time on this operating system. For example, this member could contain "EST" to indicate Eastern Standard Time. This string is not used by the operating system, so anything stored there using the SetTimeZoneInformation function is returned unchanged by the GetTimeZoneInformation function. This string can be empty.

[2] PyTime : standardTime

Specifies a SYSTEMTIME object that contains a date and local time when the transition from daylight saving time to standard time occurs on this operating system. If this date is not specified, the wMonth member in the SYSTEMTIME structure must be zero. If this date is specified, the DaylightDate value in the TIME_ZONE_INFORMATION structure must also be specified.
To select the correct day in the month, set the wYear member to zero, the wDayOfWeek member to an appropriate weekday, and the wDay member to a value in the range 1 through 5. Using this notation, the first Sunday in April can be specified, as can the last Thursday in October (5 is equal to "the last").

[3] int : standardBias

Specifies a bias value to be used during local time translations that occur during standard time. This member is ignored if a value for the StandardDate member is not supplied.
This value is added to the value of the Bias member to form the bias used during standard time. In most time zones, the value of this member is zero.

[4] unicode : daylightName

[5] PyTime : daylightTime

[6] int : daylightBias

Specifies a bias value to be used during local time translations that occur during daylight saving time. This member is ignored if a value for the DaylightDate member is not supplied.
This value is added to the value of the Bias member to form the bias used during daylight saving time. In most time zones, the value of this member is – 60.


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved