Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / June 2007



Tip: Looking for answers? Try searching our database.

System currently in daylight saving mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jack B. Pollack - 30 Jun 2007 17:04 GMT
Is there an easy way to determine if the system time is in "daylight saving"
mode or "normal" mode?

Perhaps using  GetTimeZoneInformation or GetTimeFormat API.

Code snipit or example would be appreciated.

Thanks
MikeD - 30 Jun 2007 17:21 GMT
> Is there an easy way to determine if the system time is in "daylight
> saving"
[quoted text clipped - 3 lines]
>
> Code snipit or example would be appreciated.

Have you tried either of these, particularly GetTimeZoneInformation? You
already figured out what function to use so either you haven't made any
attempt to write the code (for whatever reason, I hope not just due to
laziness) or you've tried and are having difficulties.

It's generally expected for you to at least attempt to write the code
yourself and then come here if you run into problems. Give it a shot, and if
it doesn't "work", post a message explaining what's not "working" (don't
just say "it doesn't work" because that tells us nothing) and include your
code (copied and pasted from VB).

Signature

Mike
Microsoft MVP Visual Basic

Jack B. Pollack - 30 Jun 2007 17:50 GMT
> > Is there an easy way to determine if the system time is in "daylight
> > saving"
[quoted text clipped - 18 lines]
> Mike
> Microsoft MVP Visual Basic

Hi,

I'm new to this and not even sure how to create a "TimeZone structure" or
how to retrieve the info from the structure.

Thanks
Jack B. Pollack - 30 Jun 2007 19:28 GMT
> Is there an easy way to determine if the system time is in "daylight saving"
> mode or "normal" mode?
[quoted text clipped - 4 lines]
>
> Thanks

Never mind. Found sample here:
http://vbnet.mvps.org/index.html?code/locale/gettimezoneinfo.htm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.