Date and Time Extensions Flashcards

1
Q

What do you use to convert between different calendar formats?

A

The calendar extension.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

To convert between calendar systems, you must first…

A

…convert to Julian Day Count, then to the calendar system of your choice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Julian Day Count?

A

A count of days starting from January 1st, 4713 BC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is the date and time information stored internally in PHP?

A

As a 64-bit number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What class offers a representation of date and time?

A

The DateTime class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What extension is useful as a stopwatch class?

A

HRTime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly