Problem with strtotime()
From: Dawid Szałęga (davidpl_at_o2.pl)
Date: 09/30/04
- Next message: HPCon: "problems running when PHP enabled on UK2.net"
- Previous message: Rick: "Get class name when called statically?"
- Next in thread: Matthias Esken: "Re: Problem with strtotime()"
- Reply: Matthias Esken: "Re: Problem with strtotime()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 12:24:18 +0200
Hi,
I do something like this:
$month = date('m', strtotime('2004-09-30 +5 months'))
This give me 03 (March), but 09 (September) + 5 months should give me 02
(February)
It's bug or I thing wrong?
-- Dawid Szałęga
- Next message: HPCon: "problems running when PHP enabled on UK2.net"
- Previous message: Rick: "Get class name when called statically?"
- Next in thread: Matthias Esken: "Re: Problem with strtotime()"
- Reply: Matthias Esken: "Re: Problem with strtotime()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]