PHP Date and Timestamp What will be the output of the following PHP code?If say date is 22/06/2013.printf( date("t") ) JUNE 30 22 2013 JUNE 30 22 2013 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed? $date = new Date(“JUNE 22 2013”) $date = new DateTime(“22 JUNE 2013”) $date = Date(“22 JUNE 2013”) $date = DateTime(“22 JUNE 2013”) $date = new Date(“JUNE 22 2013”) $date = new DateTime(“22 JUNE 2013”) $date = Date(“22 JUNE 2013”) $date = DateTime(“22 JUNE 2013”) ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp You must make a call to ................... to specify what time zone you want calculations to take place in before calling any date functions. date_default_timezoneset() date_default_timezone_set() date_defaulttimezone_set() datedefault_timezone_set() date_default_timezoneset() date_default_timezone_set() date_defaulttimezone_set() datedefault_timezone_set() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which of the following statements can be used to set the time zone in individual scripts? date_set_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_default_timezone(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_default_timezone(‘Europe/London’); ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which method is simply an object-oriented version of date()? DateTime::setDate() DateTime::modify() DateTime::format() DateTime::setTime() DateTime::setDate() DateTime::modify() DateTime::format() DateTime::setTime() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Among the four PHP DateTimeZone classes given below how many are static?1. listAbbreviations()2. getName()3. getOffset()4. listIdentifiers() 4 1 3 2 4 1 3 2 ANSWER DOWNLOAD EXAMIANS APP