Date and Time Extensions Flashcards
1
Q
What do you use to convert between different calendar formats?
A
The calendar extension.
2
Q
To convert between calendar systems, you must first…
A
…convert to Julian Day Count, then to the calendar system of your choice.
3
Q
What is Julian Day Count?
A
A count of days starting from January 1st, 4713 BC.
4
Q
How is the date and time information stored internally in PHP?
A
As a 64-bit number.
5
Q
Why should you use:
$date = strtotime(‘+7 days’, $date)
and not:
$date += 72460*60
A
Because the former takes DST and leap years into consideration.
6
Q
What class offers a representation of date and time?
A
The DateTime class.
7
Q
What extension is useful as a stopwatch class?
A
HRTime