Re: Interesting date
- From: Toby A Inkster <usenet200701@xxxxxxxxxxxxxxxxx>
- Date: Mon, 5 Feb 2007 11:44:32 +0000
Gunnar G wrote:
$old = getdate(strtotime("-250 days"));
and I get right now with
$old["mon"] and $old["mday"]
31 june. Well, that doesn't sound right.
I get $old["mon"] as "5" -- that is, May, not June.
PHP numbers months starting with January as 1. This is different from
Perl's "time" and "gmtime" functions, which number months starting with
January as 0.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/CSS/Javascript/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
.
- References:
- Interesting date
- From: Gunnar G
- Interesting date
- Prev by Date: Re: Interesting date
- Next by Date: MySQL does not show on php info
- Previous by thread: Re: Interesting date
- Next by thread: MySQL does not show on php info
- Index(es):
Relevant Pages
|