Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Location
    NY, USA
    Posts
    132
    Thanks
    1
    Thanked 1 Time in 1 Post

    Get start of DST

    Hi,

    What I'm trying to do seems pretty simple. I want to get the date/time that daylight savings time begins in the selected timezone (set through date_ timezone_ set). I know that date('I') returns whether or not DST is currently being observed for the given time, but I need a way to find when it starts instead of if it is currently being observed.

    Any ideas?

    Thanks in advance.

    Regards,
    ~David

  • #2
    Regular Coder
    Join Date
    Jan 2005
    Location
    NY, USA
    Posts
    132
    Thanks
    1
    Thanked 1 Time in 1 Post
    I figured out the solution.

    You want to use this function: http://us.php.net/manual/en/function...itions-get.php

    It's a little hard to understand at first, but it just returns an array, each element containing information on a transition for that time zone.

    Hope this helps someone!
    Last edited by cooleo100d; 01-25-2008 at 05:26 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •