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 --

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

2009-10-06 Thread Tom Worster
On 10/6/09 4:16 AM, "Mert Oztekin" 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 incompatible shells in un

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

2009-10-06 Thread Jason
m.tr] Sent: 06 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

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

2009-10-06 Thread Mert Oztekin
g'; 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, with leading zeros 01 through

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

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 [mailto:m

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 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: alway

Re: [PHP] Time problem

2003-11-11 Thread John W. Holmes
Erin wrote: Hi All, Sorry if this has been asked a 1000 times and if its easy to find in the php manual but i cant seam to solve this. How do i convert a timestamp in to a normal readable time & date ie 2003155023 into 11th November 2003 @ 15:50:23 IFF the "timestamp" is coming from MyS

RE: [PHP] Time problem

2003-11-11 Thread Vail, Warren
Not sure how others would tackle this, but I would use something like $readabledate = date("dS F Y @ H:i:s", strtotime(substr($timestamp,0,4)."-" .substr($timestamp,4,2)."-" .substr($timestamp,6,2)." "

Re: [PHP] Time problem

2003-11-11 Thread Chris Shiflett
--- Erin <[EMAIL PROTECTED]> wrote: > How do i convert a timestamp in to a normal readable time & date ie > > 2003155023 > > into > > 11th November 2003 @ 15:50:23 That's not a timestamp, first of all. It looks to me like you just need to use substr() to parse out the elements however you

RE: [PHP] time() problem

2002-09-18 Thread Adam Voigt
Change it to an INT or a VARCHAR datatype, the mysql timestamp field uses MySQL's date/time formmating. If you decide to let MySQL use it's own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix timestamp from that date field. Adam Voigt [EMAIL PROTECTED] On Wed, 2002-09-18 at 13:19

RE: [PHP] time() problem

2002-09-18 Thread Savaidis
Hello all! I use time() to keep UNIX seconds from 1970 to a timestamp(14) MySQL field. But when I read it (Dt_last) it is TO big compearing with "today=time()" in a php script that is only some seconds later. today : 1032350421 Dt_last: 20001101165838 What can I do? Thanks! Makis Makis -

Re: [PHP] Time problem

2001-08-08 Thread pierre-yves
Thanks, I feel a bit moron ;) it seems like I missed it while reading the manuel, sometimes the solution is so obvious that it becomes trivial! py - Original Message - From: "Thomas Schmid" <[EMAIL PROTECTED]> To: "'pierre-yves'" <[EMAIL PROTECTED]> Sent: Wednesday, August 08, 2001 8:23

Re: [PHP] Time problem

2001-08-08 Thread Gianluca Baldo
Pierre - py> In other words, how do you change this 997271630.08651 py> in 08:14:32 ? you can use date() in conjunction with mktime(). Have a look at the manual there are good examples and users comments there. Cheers, Gianluca [EMAIL PROTECTED] BcnInédita EURO RSCG INTERACTION www.bcnin

Re: [PHP] Time problem

2001-02-08 Thread Steve Werby
<[EMAIL PROTECTED]> wrote: > Or you could do it the easy way in MySQL: > > SELECT SEC_TO_TIME( TIME_TO_SEC( OUT ) - TIME_TO_SEC( IN )) AS Hours, > This requires IN and OUT to be type TIME. That is a pretty sweet function and it's definitely faster to handle the conversion in MySQL instead of PHP.

Re: [PHP] Time problem

2001-02-07 Thread php3
Addressed to: "Steve Werby" <[EMAIL PROTECTED]> "Roman" <[EMAIL PROTECTED]> "Php-General" <[EMAIL PROTECTED]> ** Reply to note from "Steve Werby" <[EMAIL PROTECTED]> Wed, 7 Feb 2001 09:28:29 -0500 Or you could do it the easy way in MySQL: SELECT SEC_TO_TIME( TIME_TO

Re: [PHP] Time problem

2001-02-07 Thread Steve Werby
"Roman" <[EMAIL PROTECTED]> wrote: > I have one problem with mysql database. In table i have 2 arrays with time > format. > For example this arrays calls IN and OUT. In php script i want to have > distinction between > this arrays. For example IN is 8:30:45 and OUT is 16:45:15 and result > will be