Time Problem: always ten past xx

Time Problem: always ten past xx

am 06.10.2009 09:53:25 von Matthias Laug

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.10.2009 10:30");
var_dump($time);
var_dump(strftime("%d.%m.%Y %H:%m",$time));

But the result is as

int 1254817800
string '06.10.2009 10:10' (length=16)

The minutes are always "10", no matter what time I get.

Anyone a clue?

Thanks, Mattes

P.S.: default timezone is set to

date_default_timezone_set('Europe/Berlin');



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Time Problem: always ten past xx

am 06.10.2009 10:03:17 von Mert Oztekin

--_000_E2C046087E10D943811A0BD0A4E8316D1B57CD1361ankaraanado lu_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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.laug@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 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 =3D strtotime("06.10.2009 10:30");
var_dump($time);
var_dump(strftime("%d.%m.%Y %H:%m",$time));

But the result is as

int 1254817800
string '06.10.2009 10:10' (length=3D16)

The minutes are always "10", no matter what time I get.

Anyone a clue?

Thanks, Mattes

P.S.: default timezone is set to

date_default_timezone_set('Europe/Berlin');



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



________________________________
Bu mesaj ve ekleri, mesajda g?nderildi?i belirtilen ki?i/ki?ilere ?zeldir v=
e gizlidir. Size yanl??l?kla ula?m??sa l?tfen g?nderen kisiyi bilgilendirin=
iz ve mesaj? sisteminizden siliniz. Mesaj ve eklerinin i?eri?i ile ilgili o=
larak ?irketimizin herhangi bir hukuki sorumlulu?u bulunmamaktad?r. ?irketi=
miz mesaj?n ve bilgilerinin size de?i?ikli?e u?rayarak veya ge? ula?mas?nda=
n, b?t?nl???n?n ve gizlili?inin korunamamas?ndan, vir?s i?ermesinden ve bil=
gisayar sisteminize verebilece?i herhangi bir zarardan sorumlu tutulamaz.

This message and attachments are confidential and intended for the individu=
al(s) stated in this message. If you received this message in error, please=
immediately notify the sender and delete it from your system. Our company =
has no legal responsibility for the contents of the message and its attachm=
ents. Our company shall have no liability for any changes or late receiving=
, loss of integrity and confidentiality, viruses and any damages caused in =
anyway to your computer system.

--_000_E2C046087E10D943811A0BD0A4E8316D1B57CD1361ankaraanado lu_--

RE: Time Problem: always ten past xx

am 06.10.2009 10:03:34 von Network Admin

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.laug@gmail.com]
Sent: 06 October 2009 08:53
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 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.10.2009 10:30");
var_dump($time);
var_dump(strftime("%d.%m.%Y %H:%m",$time));

But the result is as

int 1254817800
string '06.10.2009 10:10' (length=16)

The minutes are always "10", no matter what time I get.

Anyone a clue?

Thanks, Mattes

P.S.: default timezone is set to

date_default_timezone_set('Europe/Berlin');



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Time Problem: always ten past xx

am 06.10.2009 10:06:47 von Mert Oztekin

--_000_E2C046087E10D943811A0BD0A4E8316D1B57CD1362ankaraanado lu_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Jason,

%M is also month:

Month --- ---
F A full textual representation of a month, such as January or March Januar=
y through December
m Numeric representation of a month, with leading zeros 01 through 12
M A short textual representation of a month, three letters Jan through Dec
n Numeric representation of a month, without leading zeros 1 through 12
t Number of days in the given month 28 through 31

Time --- ---
i Minutes with leading zeros 00 to 59

http://tr.php.net/manual/en/function.date.php



-----Original Message-----
From: Jason [mailto:networkadmin@emarket2.com]
Sent: Tuesday, 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 [mailto:matthias.laug@gmail.com]
Sent: 06 October 2009 08:53
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 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 =3D strtotime("06.10.2009 10:30");
var_dump($time);
var_dump(strftime("%d.%m.%Y %H:%m",$time));

But the result is as

int 1254817800
string '06.10.2009 10:10' (length=3D16)

The minutes are always "10", no matter what time I get.

Anyone a clue?

Thanks, Mattes

P.S.: default timezone is set to

date_default_timezone_set('Europe/Berlin');



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



________________________________
Bu mesaj ve ekleri, mesajda g?nderildi?i belirtilen ki?i/ki?ilere ?zeldir v=
e gizlidir. Size yanl??l?kla ula?m??sa l?tfen g?nderen kisiyi bilgilendirin=
iz ve mesaj? sisteminizden siliniz. Mesaj ve eklerinin i?eri?i ile ilgili o=
larak ?irketimizin herhangi bir hukuki sorumlulu?u bulunmamaktad?r. ?irketi=
miz mesaj?n ve bilgilerinin size de?i?ikli?e u?rayarak veya ge? ula?mas?nda=
n, b?t?nl???n?n ve gizlili?inin korunamamas?ndan, vir?s i?ermesinden ve bil=
gisayar sisteminize verebilece?i herhangi bir zarardan sorumlu tutulamaz.

This message and attachments are confidential and intended for the individu=
al(s) stated in this message. If you received this message in error, please=
immediately notify the sender and delete it from your system. Our company =
has no legal responsibility for the contents of the message and its attachm=
ents. Our company shall have no liability for any changes or late receiving=
, loss of integrity and confidentiality, viruses and any damages caused in =
anyway to your computer system.

--_000_E2C046087E10D943811A0BD0A4E8316D1B57CD1362ankaraanado lu_--

Re: Time Problem: always ten past xx

am 06.10.2009 10:07:28 von Matthias Laug

--Apple-Mail-31--516141909
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8;
format=flowed;
delsp=yes

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:matthias.laug@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 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 =3D strtotime("06.10.2009 10:30");
> var_dump($time);
> var_dump(strftime("%d.%m.%Y %H:%m",$time));
>
> But the result is as
>
> int 1254817800
> string '06.10.2009 10:10' (length=3D16)
>
> The minutes are always "10", no matter what time I get.
>
> Anyone a clue?
>
> Thanks, Mattes
>
> P.S.: default timezone is set to
>
> date_default_timezone_set('Europe/Berlin');
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> ________________________________
> Bu mesaj ve ekleri, mesajda gönderildiği belirtilen =
kişi/kişilere =20
> özeldir ve gizlidir. Size yanlışlıkla ulaşmı=
şsa lütfen =20
> gönderen kisiyi bilgilendiriniz ve mesajı sisteminizden =
siliniz. =20
> Mesaj ve eklerinin içeriği ile ilgili olarak şirketimizin=
herhangi =20
> bir hukuki sorumluluğu bulunmamaktadır. Şirketimiz =
mesajın ve =20
> bilgilerinin size değişikliğe uğrayarak veya geç=
ulaşmasından, =20
> bütünlüğünün ve gizliliğinin =
korunamamasından, virüs =20
> içermesinden ve bilgisayar sisteminize verebileceği herhangi =
bir =20
> zarardan sorumlu tutulamaz.
>
> This message and attachments are confidential and intended for the =20
> individual(s) stated in this message. If you received this message =20
> in error, please immediately notify the sender and delete it from =20
> your system. Our company has no legal responsibility for the =20
> contents of the message and its attachments. Our company shall have =20=

> no liability for any changes or late receiving, loss of integrity =20
> and confidentiality, viruses and any damages caused in anyway to =20
> your computer system.

Matthias Laug
Schillerstraße 36
10627 Berlin

Tel.: 0176 / 20 14 21 63
eMail: matthias.laug@gmail.com




--Apple-Mail-31--516141909--

Re: Time Problem: always ten past xx

am 06.10.2009 10:11:01 von Carsten Wiedmann

Matthias Laug schrieb:
> var_dump(strftime("%d.%m.%Y %H:%m",$time));
---^
> The minutes are always "10", no matter what time I get.

"%m" = month
"%M" = minute

Regards,
Carsten


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Time Problem: always ten past xx

am 06.10.2009 10:16:14 von Mert Oztekin

--_000_E2C046087E10D943811A0BD0A4E8316D1B57CD1363ankaraanado lu_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

TXkgbWlzdGFrZSwNCg0KSSB0aG91Z2h0IGl0IHdhcyBkYXRlKCkgbm93IHN0 cmZ0aW1lKCkNClNv
cnJ5DQoNCih3aHkgZG8gcGhwIGRldmVsb3BlcnMgY3JlYXRlIHR3byBkaWZm ZXJlbnQgc3RhbmRh
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sbCBoYXZl
IG5vIGxpYWJpbGl0eSBmb3IgYW55IGNoYW5nZXMgb3IgbGF0ZSByZWNlaXZp bmcsIGxvc3Mgb2Yg
aW50ZWdyaXR5IGFuZCBjb25maWRlbnRpYWxpdHksIHZpcnVzZXMgYW5kIGFu eSBkYW1hZ2VzIGNh
dXNlZCBpbiBhbnl3YXkgdG8geW91ciBjb21wdXRlciBzeXN0ZW0uDQo=

--_000_E2C046087E10D943811A0BD0A4E8316D1B57CD1363ankaraanado lu_--

RE: Time Problem: always ten past xx

am 06.10.2009 10:24:17 von Network Admin

Hi Mert,

But we're not talking about date() here, we're talking strftime().

According to the manual %i doesn't do anything in strftime(). Closest match
is %I which is 12-hour format for hours.

HTH
J

-----Original Message-----
From: Mert Oztekin [mailto:moztekin@anadolusigorta.com.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
m Numeric representation of a month, with leading zeros 01 through 12
M A short textual representation of a month, three letters Jan through Dec
n Numeric representation of a month, without leading zeros 1 through 12
t Number of days in the given month 28 through 31

Time --- ---
i Minutes with leading zeros 00 to 59

http://tr.php.net/manual/en/function.date.php



-----Original Message-----
From: Jason [mailto:networkadmin@emarket2.com]
Sent: Tuesday, 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 [mailto:matthias.laug@gmail.com]
Sent: 06 October 2009 08:53
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 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.10.2009 10:30");
var_dump($time);
var_dump(strftime("%d.%m.%Y %H:%m",$time));

But the result is as

int 1254817800
string '06.10.2009 10:10' (length=16)

The minutes are always "10", no matter what time I get.

Anyone a clue?

Thanks, Mattes

P.S.: default timezone is set to

date_default_timezone_set('Europe/Berlin');



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



________________________________
Bu mesaj ve ekleri, mesajda g?nderildi?i belirtilen ki?i/ki?ilere ?zeldir ve
gizlidir. Size yanl??l?kla ula?m??sa l?tfen g?nderen kisiyi bilgilendiriniz
ve mesaj? sisteminizden siliniz. Mesaj ve eklerinin i?eri?i ile ilgili
olarak ?irketimizin herhangi bir hukuki sorumlulu?u bulunmamaktad?r.
?irketimiz mesaj?n ve bilgilerinin size de?i?ikli?e u?rayarak veya ge?
ula?mas?ndan, b?t?nl???n?n ve gizlili?inin korunamamas?ndan, vir?s
i?ermesinden ve bilgisayar sisteminize verebilece?i herhangi bir zarardan
sorumlu tutulamaz.

This message and attachments are confidential and intended for the
individual(s) stated in this message. If you received this message in error,
please immediately notify the sender and delete it from your system. Our
company has no legal responsibility for the contents of the message and its
attachments. Our company shall have no liability for any changes or late
receiving, loss of integrity and confidentiality, viruses and any damages
caused in anyway to your computer system.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Time Problem: always ten past xx

am 06.10.2009 16:04:37 von Tom Worster

On 10/6/09 4:16 AM, "Mert Oztekin" wrote:

> My mistake,
>=20
> I thought it was date() now strftime()
> Sorry
>=20
> (why do php developers create two different standarts for such similiar
> functions???â˜=BA )
>=20

it's traditional to do so. it reminds me of the bit about subtly
incompatible shells in unix from "Real Programmers Don't Use Pascal":

"Even Unix might not be as bad on Real Programmers as it once was. The
latest release of Unix has the potential of an operating system worthy of
any Real Programmer-- two different and subtly incompatible user interfaces=
,
an arcane and complicated teletype driver, virtual memory. If you ignore th=
e
fact that it's "structured", even 'C' programming can be appreciated by the
Real Programmer: after all, there's no type checking, variable names are
seven (ten? eight?) characters long, and the added bonus of the Pointer dat=
a
type is thrown in-- like having the best parts of Fortran and assembly
language in one place. (Not to mention some of the more creative uses for
#define.)"

we could collect a list:

gnu make vs bsd make
how many subtly different versions of grep are there?


but i'm, sure it's been done already and i guess it's off topic.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Time Problem: always ten past xx

am 06.10.2009 18:22:00 von 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php