Re: [PHP] Date/Time from Unix timestamp
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]
Re: [PHP] Date/Time from Unix timestamp
At 23:10 24.01.2001, CDitty said: [snip] >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? [snip] Perl says it is "Sun Dec 24 17:55:02 2000" ...ebird >O Ernest E. Vogelsinger (\)http://www.1-at-web.at/ ^ ICQ# 13394035 -- 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]
[PHP] Date/Time from Unix timestamp
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]