Re: timestamp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
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.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux