How to get seconds from current date using date function ?

Answers were Sorted based on User's Feedback



How to get seconds from current date using date function ?..

Answer / suma

date("s")

Is This Answer Correct ?    63 Yes 4 No

How to get seconds from current date using date function ?..

Answer / rupa

date("h:i:s");//get current time
date(s);//get only seconds

Is This Answer Correct ?    25 Yes 2 No

How to get seconds from current date using date function ?..

Answer / kumaresan

date("s")

Is This Answer Correct ?    13 Yes 2 No

How to get seconds from current date using date function ?..

Answer / sunil kumar

date("s")

Is This Answer Correct ?    6 Yes 3 No

How to get seconds from current date using date function ?..

Answer / ghan shyam

by using date function like :
date("s",time());

or
date("s",strtotime("$dt")); for given date in $dt

Is This Answer Correct ?    1 Yes 4 No

How to get seconds from current date using date function ?..

Answer / meena mojaaila

date

Is This Answer Correct ?    0 Yes 7 No

How to get seconds from current date using date function ?..

Answer / dinesh kumar

datepart(dateinterval.second,now)

Is This Answer Correct ?    1 Yes 10 No

How to get seconds from current date using date function ?..

Answer / saritha

date('y-m-d')

Is This Answer Correct ?    2 Yes 33 No

Post New Answer

More PHP Interview Questions

Tell me what is the use of explode() function?

0 Answers  


What is meant by PEAR in PHP?

0 Answers  


Which is better session or cookie?

0 Answers  


how do we can copy of the content of a web page with the help og the URL and display them onto any other page

5 Answers  


What is strlen php?

0 Answers  






What is varchar mysql?

0 Answers  


Why triggers are used in mysql?

0 Answers  


How to get number of elements in an array?

0 Answers  


Which php framework is best for web development?

0 Answers  


What are the types of variables in php?

0 Answers  


How to check your php installation?

0 Answers  


What are the ways to include file in php?

0 Answers  


Categories