Re: Week Number
| From: | Matt \"TrollBoy\" Wiseman | Date: | Fri, 29 Jun 2001 19:00:18 +0000 |
| Subject: | Re: Week Number | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-55593@lists.php.net to get a copy of this message | ||
Thanks to all of you that responded, I was so busy searching the manual for
that specific function I forgot all about figuring it myself from
date("z")... I really gotta lay off that crack pipe. Thanks again guys.
Also, another item, I know the list is back up now, but this was mail was
sent a solid DAY before I recieved it back through the list.. that's not
very good, perhaps the powers that be should look over the list again...
Matt "TrollBoy" Wiseman
Webmaster: Shoggoth.net
Site Designer: phpslash.org
The oldest and strongest emotion of mankind is fear,
and the oldest and strongest kind of fear is fear of the unknown.
-H.P. Lovecraft
---------------------------------------------------------
Please do not resell my e-mail address
to anyone or send me unsolicited e-mail
---------------------------------------------------------
----- Original Message -----
From: "Brian Paulson" <webmaster@chieftain.com>
To: "'Matt "TrollBoy" Wiseman'" <trollboy@shoggoth.net>
Sent: Friday, June 29, 2001 2:27 PM
Subject: RE: [PHP] Week Number
> When I needed this before I did dome thing like this
>
> <?
> // z day of the year i.e. 0-365
> $days = date("z");
> //Devide number of days by 7 number of day in the week
> $math = ($days/7);
> //result is a number like 25.7435445
> //so we explode that and take the first number which is what we want
> $math = explode(".",$math);
> //then set week to = that number
> $week = $math[0];
> //and print
> Print($week);
> ?>
>
> Hope that helps
>
> Thank You
> Brian Paulson
> Sr. Web Developer
> bpaulson@chieftain.com
> The Pueblo Chieftain
> www.chieftain.com
> 1-800-279-6397
>
>
> -----Original Message-----
> From: Matt "TrollBoy" Wiseman [mailto:trollboy@shoggoth.net]
> Sent: Thursday, June 28, 2001 1:33 PM
> To: php-general@lists.php.net
> Subject: [PHP] Week Number
>
>
> Does know of anyway to get PHP to return the week number?
> As in there are 52 weeks in a year and this is week x?
> If there is no internal feature, perhaps something built into PHPLib?
>
> Lemme know,
> Matt "TrollBoy" Wiseman
> Webmaster: Shoggoth.net
> Site Designer: phpslash.org
> The oldest and strongest emotion of mankind is fear,
> and the oldest and strongest kind of fear is fear of the unknown. -H.P.
> Lovecraft
> ---------------------------------------------------------
> Please do not resell my e-mail address
> to anyone or send me unsolicited e-mail
> ---------------------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net To
> contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>