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
--
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
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
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
, 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
thias Laug [mailto:matthias.l...@gmail.com]
Sent: Tuesday, October 06, 2009 10:53 AM
To: php-general@lists.php.net
Subject: [PHP] Time Problem: always ten past xx
Hey everybody,
I've got a strange problem. Using PHP5.3 on my MacBook.
There is a script, which handles input from user, in this case
ject: [PHP] Time Problem: always ten past xx
Hey everybody,
I've got a strange problem. Using PHP5.3 on my MacBook.
There is a script, which handles input from user, in this case a date
and time.
So I get for example "10:30" and "06.10.2009". Standard german time
f
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 Pr
Hey everybody,
I've got a strange problem. Using PHP5.3 on my MacBook.
There is a script, which handles input from user, in this case a date
and time.
So I get for example "10:30" and "06.10.2009". Standard german time
format. Now I try to get the correct timestamp:
$time = strtotime("06
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
ase timestamp) into the readable format you described. It's yours to
debug.
http://www.php.net/manual/en/function.date.php
Good luck,
Warren Vail
-Original Message-
From: Erin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 4:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Tim
--- 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
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
Many thanks, thought id ask someone is bound to
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
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
-
>
Sent: Wednesday, August 08, 2001 8:23 AM
Subject: AW: [PHP] Time problem
Take the date() function ;-)
-Ursprüngliche Nachricht-
Von: pierre-yves [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 8. August 2001 14:19
An: [EMAIL PROTECTED]
Betreff: [PHP] Time problem
Hello,
I convert t
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
Hello,
I convert the time in seconds to do some calculations, now I want
to convert a number of seconds in a presentable HH:MM:SS format.
In other words, how do you change this 997271630.08651
in 08:14:32 ?
py
p.s. I use this to get the number of seconds.
function getmicrotime() {
$temparray
<[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.
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
"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
Hello !!
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: 8:14:30. Exists any functi
22 matches
Mail list logo