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

Write the code for upload a video file in PHP.How will You Play this in Your Page.?

2 Answers   ASD Lab, Convex Digital,


What is binary safe string?

0 Answers  


Is php a backend?

0 Answers  


How to get the http request in php?

0 Answers  


What are access specifiers?

0 Answers  






What is the difference between file_get_contents() and file_put_contents() in php?

0 Answers  


What does a delimiter do in mysql?

0 Answers  


In forms when i am click submit button it will store on the desired table as well as it send to paticuler mail id. Any body know the answer plz give me detail information.

2 Answers  


How to turn on the session support?

0 Answers  


What is the difference between Reply-to and Return-path in the headers of a mail function?

2 Answers  


Is php secure?

0 Answers  


What type of headers that PHP supports?

0 Answers  


Categories