Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6750509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:48:56+00:00 2026-05-26T12:48:56+00:00

Since the time has just changed the past weekend in places that use Daylight

  • 0

Since the time has just changed the past weekend in places that use Daylight Savings Time I’m sure there’s going to be a few queries related to this.

I am trying to determine if a date used DST or not. For this I assume the 30th of October 2011 does not use DST, as the switch occurred on that date..is this correct?

Here is the code (I would expect Oct 30th to not use DST ):

<?php
echo "Timezone = " . date_default_timezone_get();
echo "</br>";

$dateOct29='2011-10-29';
$dateOct29Timestamp=strtotime($dateOct29,time());
$checkDayLightSavingOct29=date('I',$dateOct29Timestamp);
echo "Date : ".$dateOct29." Timestamp : ".$dateOct29Timestamp." Formatted ('Y-m-d Z T'): ".date('Y-m-d Z T',$dateOct29Timestamp)."</br>";
echo "Result of date('I',timestamp) : ". $checkDayLightSavingOct29."</br>";

$dateOct30='2011-10-30';
$dateOct30Timestamp=strtotime($dateOct30,time());
$checkDayLightSavingOct30=date('I',$dateOct30Timestamp);
echo "Date : ".$dateOct30." Timestamp : ".$dateOct30Timestamp." Formatted ('Y-m-d Z T'): ".date('Y-m-d Z T',$dateOct30Timestamp)."</br>";
echo "Result of date('I',timestamp) : ". $checkDayLightSavingOct30."</br>";

$dateOct31='2011-10-31';
$dateOct31Timestamp=strtotime($dateOct31,time());
$checkDayLightSavingOct31=date('I',$dateOct31Timestamp);
echo "Date : ".$dateOct31." Timestamp : ".$dateOct31Timestamp." Formatted ('Y-m-d Z T'): ".date('Y-m-d Z T',$dateOct31Timestamp)."</br>";
echo "Result of date('I',timestamp) : ". $checkDayLightSavingOct31."</br>";

$dateNov01='2011-11-01';
$dateNov01Timestamp=strtotime($dateNov01,time());
$checkDayLightSavingNov01=date('I',$dateNov01Timestamp);
echo "Date : ".$dateNov01." Timestamp : ".$dateNov01Timestamp." Formatted ('Y-m-d Z T'): ".date('Y-m-d Z T',$dateNov01Timestamp)."</br>";
echo "Result of date('I',timestamp) : ". $checkDayLightSavingNov01."</br>";


?>

This prints the following:

Timezone = Europe/Dublin

Date : 2011-10-29 Timestamp : 1319842800 Formatted (‘Y-m-d Z T’): 2011-10-29 3600 IST

Result of date(‘I’,timestamp) : 1

Date : 2011-10-30 Timestamp : 1319929200 Formatted (‘Y-m-d Z T’): 2011-10-30 3600 IST

Result of date(‘I’,timestamp) : 1

Date : 2011-10-31 Timestamp : 1320019200 Formatted (‘Y-m-d Z T’): 2011-10-31 0 GMT

Result of date(‘I’,timestamp) : 0

Date : 2011-11-01 Timestamp : 1320105600 Formatted (‘Y-m-d Z T’): 2011-11-01 0 GMT

Result of date(‘I’,timestamp) : 0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:48:57+00:00Added an answer on May 26, 2026 at 12:48 pm

    October 30th uses DST up to about 3 AM. Since your times are at midnight, this is before the DST change and therefore the 30th is being marked as having DST. Try setting the time to 10AM, and that should give correct results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Since short time ago, Google + has had hangouts implemented on the iPhone. You
It has been a long time since I used java and I have run
Ever since British Summer Time ended in the UK last week my application has
I have a code that works 99% of the time since is deploy in
I have a DGV that has its datasource set to a BindingList. There is
Ever since updating to the latest ADT (version 18), I've noticed that there seems
We've been using VSS 6.0 since time began, but yesterday I nabbed VSS2005 off
Its a long time since I've used C but now I'm trying to compile
It's been a long time since I've done C++ and I'm running into some
It's been a long time since I've had to deal with Win32 menus. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.