RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Jason
Hi, That's because %m is month, what you need is %M for minute (note uppercase). Check out http://php.net/strftime HTH J -Original Message- From: Matthias Laug [mailto:matthias.l...@gmail.com] Sent: 06 October 2009 08:53 To: php-general@lists.php.net Subject: [PHP] Time Problem:

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Mert Oztekin
You also write the answer var_dump(strftime(%d.%m.%Y %H:%m,$time)); there are 2 %m you see? %m is month :) for minute use %i -Original Message- From: Matthias Laug [mailto:matthias.l...@gmail.com] Sent: Tuesday, October 06, 2009 10:53 AM To: php-general@lists.php.net Subject: [PHP]

Re: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Matthias Laug
argh, why do I always stick to the stupid questions :( sorry Am 06.10.2009 um 10:03 schrieb Mert Oztekin: You also write the answer var_dump(strftime(%d.%m.%Y %H:%m,$time)); there are 2 %m you see? %m is month :) for minute use %i -Original Message- From: Matthias Laug

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Mert Oztekin
, October 06, 2009 11:04 AM To: 'Matthias Laug'; php-general@lists.php.net Subject: RE: [PHP] Time Problem: always ten past xx Hi, That's because %m is month, what you need is %M for minute (note uppercase). Check out http://php.net/strftime HTH J -Original Message- From: Matthias Laug

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Mert Oztekin
@lists.php.net Subject: RE: [PHP] Time Problem: always ten past xx Jason, %M is also month: Month --- --- F A full textual representation of a month, such as January or March January through December m Numeric representation of a month, with leading zeros 01 through 12 M A short textual

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Jason
October 2009 09:07 To: 'Jason'; 'Matthias Laug'; php-general@lists.php.net Subject: RE: [PHP] Time Problem: always ten past xx Jason, %M is also month: Month --- --- F A full textual representation of a month, such as January or March January through December m Numeric representation of a month

Re: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Tom Worster
On 10/6/09 4:16 AM, Mert Oztekin mozte...@anadolusigorta.com.tr wrote: My mistake, I thought it was date() now strftime() Sorry (why do php developers create two different standarts for such similiar functions???☺ ) it's traditional to do so. it reminds me of the bit about subtly

Re: [PHP] Time Problem: always ten past xx

2009-10-06 Thread tedd
At 10:07 AM +0200 10/6/09, Matthias Laug wrote: argh, why do I always stick to the stupid questions :( sorry Because with the important questions, you don't need answers. You understand them. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com