Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


October 09, 2006

Don't Let Daylight Saving Time Sneak Up on You

Script determines when those fateful Sundays occur
RSS
Subscribe to Windows IT Pro | See More VBScript Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
SideBar    Daylight Saving Time Is Changing in 2007

Download the Code Here

Don't Be Caught Off Guard
With GetDLSDates.vbs, you'll never get caught off guard when time springs ahead or falls back an hour. And with a little tweaking, you can use the script's DLS function to return other useful dates. For example, as I'll show you in a future article, you can use it to return the date when Microsoft releases its patches by passing the second Tuesday of a month to the function. You might also use the Bias and DaylightBias properties to offset date values that are in the GMT format in order to get more accurate date and time return values. For more information about the Win32_Time-Zone class properties, see Win32 _TimeZone Web page at http://msdn.microsoft.com/library/default.asp?url =/library/en-us/ wmisdk/wmi/ win32_timezone.asp.

Statement of Ownership

Statement of Ownership Management and Circulation for WINDOWS SCRIPTING SOLUTIONS as required by 39 U.S.C. 3685; WINDOWS SCRIPTING SOLUTIONS, publication no. 1537-4483, filed October 1, 2006, to publish twelve monthly issues each year for an annual subscription price of $129.00. The mailing address of the office of publication, the headquarters of general business of Kim Paulsen, Publisher; Karen Forster, Editorial and Strategy Director; is 221 E. 29th St., Loveland, CO 80538. The owner is Penton Media, Inc., 1300 E. 9th St., Cleveland, OH 44114-2543. There are no known bondholders, mortgages, or other security holders owning or holding one percent or more of the total amount of bonds, mortgages, or other securities. The average number of copies of each issue published during the twelve months preceding the filing date include: total number of copies (2,385); mail subscription (936); sales through dealers and carriers, street vendors, and counter sales (476); other classes mailed through the USPS (105); total paid and/or requested circulation (1,517); free distribution by mail carrier or other means and samples, complimentary, and other free copies (421); total distribution (1,938); copies not distributed (447) for a total of (2,385) copies. The actual number of copies of single issues published nearest to the filing date include: total number of copies (2,102); mail subscription (1,009); sales through dealers and carriers, street vendors, and counter sales (485); other classes mailed through the USPS (79); total paid and/or requested circulation (1,573); free distribution by mail carrier or other means and samples, complimentary and other free copies (36); total distribution (1,609); copies not distributed (493) for a total of (2,102) copies.

I certify that the statements made by me above are correct and complete:
Kim Paulsen,
Publisher

End of Article

   Previous  1  2  [3]  Next  


Reader Comments
Does this work for other timezones ?
From skimming through the article I think it does as it's using an offset of GMt but just wanted to confirm.
Thanks,
Johnny

johnnypower November 04, 2007 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Scripting Whitepapers From Development to Production: Streamlining SharePoint Deployment with DocAve Deployment Manager

Related Events WinConnections and Microsoft® Exchange Connections

The Easiest Way to Save Time and Money on E-mail and SharePoint Management

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related Scripting Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement