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:
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]
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
, 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
@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
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
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
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
--- 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 want. You
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).
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 MySQL
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
--
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
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
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 AM
"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:
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_SEC(
17 matches
Mail list logo