Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - GetDaylightSaving

Posted in WinTask

'
' GetDaylightSaving
'
' Determines if the Operating Systems is currently in
' Daylight Saving Time mode or not
'

dim a as unsigned
dim ptr as unsigned

ptr=allocate(255)
PokeString(ptr," ",1)

a = External("kernel32","GetTimeZoneInformation",ptr)

Select Case a
case 1
  msgbox("We are operating in Standard Time",,"GetDaylightSaving")
case 2
  msgbox("We are operating in Daylight Saving Time",,"GetDaylightSaving")
case else
  msgbox("I just don't know!",,"GetDaylightSaving")
endselect


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now