Re: [PHP-DEV] Missing date() functionality

2001-08-14 Thread Christian Joergensen

On Tuesday 14 August 2001 22:03, André Næss wrote:
 Wouldn't it be nice if date() returned the weeknumber? I was rather
 appalled when I realized this wasn't available... Have I missed something?
 The other date related functions also seem to miss functionality like this.

You can do that with strftime:

http://php.net/manual/en/function.strftime.php

-- 
Christian Jørgensen  |  Ford, you're turning into a penguin
http://www.razor.dk  |  Stop it 

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] Missing date() functionality

2001-08-14 Thread André Næss

Ok, thanks for pointing that out, but it seems rather strange to use a
string function when you need to do a date operation?! I would guess that
everyone looking for a way to handle dates and time would look in the date
and time functions part of the manual. There should AT LEAST be a reference
to strftime() from date()!

André Næss


 -Original Message-
 From: Christian Joergensen [mailto:[EMAIL PROTECTED]]
 Sent: 15. august 2001 00:18
 To: André Næss; [EMAIL PROTECTED]
 Subject: Re: [PHP-DEV] Missing date() functionality
 
 
 On Tuesday 14 August 2001 22:03, André Næss wrote:
  Wouldn't it be nice if date() returned the weeknumber? I was rather
  appalled when I realized this wasn't available... Have I 
 missed something?
  The other date related functions also seem to miss 
 functionality like this.
 
 You can do that with strftime:
 
 http://php.net/manual/en/function.strftime.php
 
 -- 
 Christian Jørgensen  |  Ford, you're turning into a penguin
 http://www.razor.dk  |  Stop it 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
 

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]