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