CIST2351-PHP Programming I - Ch 10

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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


Set pelajaran terkait

Chapter 5: The Selection Process

View Set

Chapter 9 Exam - Retirement Plans

View Set

Vocabulary Workshop Level H Unit 10 Antonyms

View Set

Vocabulary for the College-Bound Student: Animals

View Set

PSYC 101, Chapter 14 Learning Curve, Lewis, Chico State

View Set

American Government Judicial Branch Quiz

View Set

A&P 1: Ch 27 Nervous Tissue and Nerves

View Set

Algebra I test 10 problems explained

View Set