Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


The Art of Daylight Savings Time

Confused by the recent changes in the Daylight Saving Time scheme? Learn about the ramifications of these changes and find out how to access your system's Daylight Savings Time information programmatically.




Application Security Testing: An Integral Part of DevOps

A month ago, I discussed the strfmt() function. A timely announcement from Microsoft has inspired me to write a column about a related topic, namely accessing the system's Daylight Saving Time information programmatically. This article shows how to detect whether DST is in effect in the current local time zone.

How can you detect whether DST is in effect in your current local time zone? How do you detect the difference between the local standard time and the local alternate time?

Use the _tzset(), _daylight, _timezone, and _tzname facilities of the standard <ctime> library.

Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date