21. Which of the following functions do not return a timestamp?
1. time()
2. date()
3. strtotime()
4. localtime()
5. gmmktime()
1. time()
2. date()
3. strtotime()
4. localtime()
5. gmmktime()
22. The getdate() function returns
23. .......... Returns the time of sunrise for a given day / location.
24. What will the following script output?
<?php
$time = strtotime ('2004/01/01');
echo date ('H:i:s', $time);
?>
<?php
$time = strtotime ('2004/01/01');
echo date ('H:i:s', $time);
?>
25. ................Checks a date for numeric validity.
26. What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone?
27. You must make a call to ................... to specify what time zone you want calculations to take place in before calling any date functions.
28. 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);
?>