PHP Date and Time Questions and Answers with Useful Programs
1. How many php methods are available in DateTime Class?
Loading...
2. How many constants does the DateTime class have in php 5.6?
Loading...
3. Which one of the following format parameter is correct to get timezone in date() function?
Loading...
4. Which one of the following format parameter can be used to get seconds with leading zero?
Loading...
5. How we can set default timezone for our PHP application or website?
Loading...
6. What will be the output of following PHP snippet?
<?php
echo date('\i\t \i\s \t\h\e jS \d\a\y.');
?>
Loading...
7. Which of the following functions do not return a timestamp?
Loading...
8. ................ Formats a local time or date according to locale settings.
Loading...
9. The ......... function parses an English textual date or time into a Unix timestamp
Loading...
10. What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?
<?php
echo gmmktime(0, 0, 0, 1, 1, 1970);
?>
<?php
echo gmmktime(0, 0, 0, 1, 1, 1970);
?>
Loading...
Are these questions helpful for you?
Comments: (Your feedback is valuable to us)
Davinder Singh 6 years ago Reply
Thanks admin ... i really like this... please share more questions