Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 22-06-2009
Member
 
Join Date: May 2008
Posts: 26
Date function in php including milliseconds

Hi,

I want to know about the PHP function for date that will show me milliseconds?
I want to show Day-Month-Year Hours-Minutes-Seconds-Milliseconds
Can you please help me with this?
Reply With Quote
  #2  
Old 22-06-2009
Member
 
Join Date: Aug 2008
Posts: 281
Re: Date function in php including milliseconds

Hi,

For PHP date function you must go through these previous topics.

1. MySQL date & time function.
And
2. Date function in PHP

I hope this will help you, Ill try to find & answer you for showing millisecond too.
Reply With Quote
  #3  
Old 22-06-2009
Member
 
Join Date: May 2008
Posts: 20
Re: Date function in php including milliseconds

Hi,

If you want to show milliseconds, then first you need to get the microtime,
Now add the values & multiply it by 1000.
Do as follows

Code:
list( $msecs, $uts ) = split( ' ', microtime());
echo floor(($uts+$msecs)*1000);
I hope this helps you!
Reply With Quote
  #4  
Old 22-06-2009
Member
 
Join Date: Aug 2008
Posts: 281
Re: Date function in php including milliseconds

If you want to go for detail information on PHP date function & milliseconds.
Please refer the PHP site.
http://in.php.net/microtime
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Date function in php including milliseconds"
Thread Thread Starter Forum Replies Last Post
Sql query for Date function. horuy Software Development 3 17-11-2010 12:22 AM
Discussion of Date and Time function Gerri Software Development 3 29-01-2010 12:03 PM
MySQL date & time function. Amaresh Software Development 2 19-06-2009 02:49 PM
Date function in PHP RobertoOrtiz Software Development 2 05-05-2009 07:54 PM
Problem with Php date function HAMAKO Software Development 1 21-04-2009 12:38 PM


All times are GMT +5.5. The time now is 12:25 PM.