[PHP] Date/Time from Unix timestamp

2001-01-24 Thread CDitty

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?  iewhat date/time does 977676902 come 
out to?

Thanks

CDitty


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Date/Time from Unix timestamp

2001-01-24 Thread Hardy Merrill

CDitty [[EMAIL PROTECTED]] 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?  iewhat 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]