PrepAway - Latest Free Exam Questions & Answers

Which of the following will NOT instantiate a DateTime object with the current timestamp?

Which of the following will NOT instantiate a DateTime object with the current timestamp?

PrepAway - Latest Free Exam Questions & Answers

A.
$date = new DateTime();

B.
$date = new DateTime(‘@’ . time());

C.
$date = new DateTime(‘now’);

D.
$date = new DateTime(time());


Leave a Reply

Your email address will not be published. Required fields are marked *