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

What are the different ways we can retrive the mysql results using php ? Explain each

1 Answers  


How can you declare a constant variable in php?

0 Answers  


How can I get the only name of the current executing file?

6 Answers  


Where can I learn php?

0 Answers  


What is new static in php?

0 Answers  


Explain the difference between $var and $$var?

0 Answers  


1.<?php echo'bsfjbsnmfbs'; ?> 2.<? ech'hjndfjkshf'; ?> 3 <? echo'naskfdjnask'; three programs are exected but which is beter why

3 Answers   HCL,


i was set new individual folder for saving session values,the folder name is session and i set 777 permission,using session.save_path function like session.save_path "/home21b/sub004/sc21311-ULCX/candyoflove.com/session/" but it causing Warning: Unknown(): SAFE MODE Restriction in effect. The script whose uid/gid is 12112/12112 is not allowed to access /home21b/sub004/sc21311-ULCX/candyoflove.com/session owned by uid/gid 12267/12267 in Unknown on line 0 ,please tell what changes make this script, i was using .htaccesss file..plz help me....

1 Answers  


What is php stack?

0 Answers  


What is static method php?

0 Answers  


Which function can be used to delete a file?

0 Answers  


How cookies are transported from servers to browsers?

0 Answers  


Categories