You are here: Re: creating dates from 3-tuples « PHP Programming Language « IT news, forums, messages
Re: creating dates from 3-tuples

Posted by Ewoud Dronkert on 11/25/05 11:29

yawnmoth wrote:
> year to something like September 3, 1997 using gmdate?
> mktime(0,0,0,$month,$day,$year) doesn't seem to work as often

Timezone artefact. Don't mix mktime() and gmdate(). Use mktime() and
date(), or gmmktime() and gmdate(), depending on what the parameters
represent. See http://php.net/gmmktime

--
E. Dronkert

 

Navigation:

[Reply to this 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

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