Re: Date/Time from Unix timestamp

From: Date: Wed, 24 Jan 2001 22:33:47 +0000
Subject: Re: Date/Time from Unix timestamp
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36509@lists.php.net to get a copy of this message
CDitty [mail@redhotsweeps.com] wrote: > Ok, I have looked at all my sources, including the manual and I cannot find > any method of converting the Unix timestamp to a displayable date/time. I > have probably just overlooked it each time, but all I can find are methods > to convert the current date/time to a Unix timestamp. > > Can anyone give me an example? ie....what date/time does 977676902 come > out to? Look at http://www.php.net/manual/en/html/ref.datetime.html, specifically "date" for converting a unix timestamp into a usable date, and "mktime" for converting a date into a unix timestamp. HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com

« previous php.general (#36509) next »