Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: time variable

  1. #11
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hm, it worked for me using date_create() as in the code I posted. I initially used new DateTime(), but switched to date_create() because of that issue.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  2. #12
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey View Post
    Hm, it worked for me using date_create() as in the code I posted.
    I could have sworn that it didn't for me, though I think one might as well be consistent and use the OO form on both occasions.

    It's possible that the OP is using PHP 4, hence the error, but I don't have that installed at the moment. I'm leaving soon, so it'll either have to wait until later or tomorrow.

    If nobody's noticed, the PHP Group have announced the end of PHP 4 support at the end of this year. Critical updates will end 8th August, 2008.
    Mike

Bookmarks

Posting Permissions

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