Re: timestamp

From: Date: Sun, 30 Jan 2005 00:57:20 +0000
Subject: Re: timestamp
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-38392@lists.php.net to get a copy of this message
Balwant - according to http://php.planetmirror.com/manual/en/ref.datetime.php shouldn't you be using <http://php.planetmirror.com/manual/en/ref.datetime.phpfunction.strtotime.php>strtotime rather than strftime for this ? strftime needs input of a timestamp a large Int32 Unix Timestamp), where strtotime can format most textual time formats recognised by the OS. Cheers - Neil
From: Balwant Singh <balwantsingh@indoasian.com> i am facing a problem i have timestamp in string format --> Fri Jan 28 19:53:09 2005 now i want to get the date from it. is it possible? pls. help. on using strftime("%D",$timestamp) it is giving 01/01/70. May pls. help me. Also pls. let me know whether calculation can be done in mysql on this string timestamp. pls. inform. with best wishes balwant
======================================================== CaptionKit http://www.captionkit.com : Production tools for accessible subtitled internet media, transcripts and searchable video. Supports Real Player, Quicktime and Windows Media Player. VideoChat with friends online, get Freshly Toasted every day at http://www.fresh-toast.net : NetMeeting solutions for a connected world.

« previous php.db (#38392) next »