CSE :: PHP - CS
- Which method is simply an object-oriented version of date()?
- Which of the following is the right way to use the DateTime class?
-
What will be the output of the following PHP code if date is 24/02/2008?
<?php
$date = new DateTime();
echo $date->format('l,F,js,Y')
?>
- Which of the following statements can be used to set the time zone in individual scripts?
- Among the four PHP DateTimeZone classes given below how many are static? 1. listAbbreviations() 2. getName() 3. getOffset() 4. listIdentifiers()
- Among the four PHP DateTimeZone classes given below how many are nonstatic? 1. _construct() 2. getName() 3. getOffset() 4. getTransitions()
- Which of the following statements can be used to add two months to the existing date?
- Which method enables you to calculate whether daylight saving time is in force at a specific date and time?