Quiz 10
Which of the following is a method of a DateTime object that can be used to determine an amount of time between two dates or times?
diff()
A timestamp stores the number of ________________ since midnight on January 1, 1970 GMT.
seconds
The diff() method of a DateTime object requires another DateTime object as its argument and returns a/an ________________ object.
DateInterval
The use of ________________ objects resolves the Y2K38 problem because the upper limits of dates and times are essentially removed.
DateTime
To create a DateTime object based on the date and time you specifiy, you use a/an ________________ template.
absolute
To create a DateTime object for the current date, you use the ________________ keyword and pass no arguments to the constructor.
new
To create a DateTime object based on an offset you specify to the current date and time, you use a/an ________________ template.
relative
Which of the following functions can you use to modify a DateTime object?
setDate(), setTime(), modify()
A/An ______________ is an integer that represents a date and time as the number of seconds since midnight, January 1, 1970.
timestamp
When you create a DateInterval object, you pass it one argument that specifies one or more of the following:
years, months, weeks, days, hours, minutes, seconds
Timestamps will encounter a/an _______ problem if they are not converted to DateTime objects.
Y2K38
Which of the following is a method of a DateTime object that can be used to add a period of time to the date?
add()
