CIST2351-PHP Programming I - Ch 10
If the date is December 25, 2014, what output would be provided by the code below? echo date('F d, Y');
December 25, 2014
If the date is December 25, 2014, what output would be produced by the code below? echo date('M. d, Y');
Dec. 25, 2014
Which of the following statements is NOT a valid way to create a timestamp named $birthdate that represents December 2, 1969?
$birthdate = mktime(12, 2, 1969);
Which method of a DateTime object can be used to determine an amount of time between two dates or times?
diff
A _____ 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
If the date is December 25, 2014, what output would be produced by the code below? echo date('n/j/y');
12/25/14
If the date is December 25, 2014, what output would be produced by the following code? echo date('n/j/y');
12/25/14
If the date is December 25, 2014, what output would be produced by the code below? echo date('n/d/y h:i A');
12/25/2014 12:00 AM
Timestamps will encounter a(n) _____ problem if they are not converted to DateTime objects.
Y2K38
