Date And Timestamp MCQs
Practice Date And Timestamp MCQs for competitive exams.
Date And Timestamp MCQs
Practice questions from this topic.
................ Formats a local time or date according to locale settings.
Correct Answer: A
The ......... function parses an English textual date or time into a Unix timestamp.
Correct Answer: C
What would happen if the following script were run on a Windows server set to Moscow, Russia’s time zone?
Correct Answer: B
You must make a call to ................... to specify what time zone you want calculations to take place in before calling any date functions.
Correct Answer: A
What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone?
Correct Answer: B
................Checks a date for numeric validity.
Correct Answer: D
What will the following script output?
Correct Answer: C
.......... Returns the time of sunrise for a given day / location.
Correct Answer: B
The getdate() function returns
Correct Answer: C
Which of the following functions do not return a timestamp? 1. time() 2. date() 3. strtotime() 4. localtime() 5. gmmktime()
Correct Answer: D
Which method enables you to calculate whether daylight saving time is in force at a specific date and time?
Correct Answer: B
Which of the following statements can be used to add two months to the existing date?
Correct Answer: A
