Reply to Re: Splitting date into chunks

Your name:

Reply:


Posted by Jason Carlton on 11/29/07 06:56

> list($year, $month, $date, $hour, $minute, $second) = split("
> ",date("Y m d H i s",timestamp));
> Hope it helps.

That's very cool, but it's not working quite right. I've tried several
variations, and keep getting the wrong thing.

If I type in:

$timestamp = 20050714010317;
echo date('Y m d H i s', $timestamp);

Then it returns:

2038 01 18 22 13 44

Any idea where that's coming from?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация