What will be the output of the following PHP code if date is 24/02/2008?<br/>$date = new DateTime();<br/>echo $date->format('l,F,js,Y') Sunday, 24th February 2008 Sunday, 02 24 2008 Sunday, February 24th 2008 Sunday, 24 02 2008 TRUE ANSWER : ? YOUR ANSWER : ?
................ Formats a local time or date according to locale settings. strhtime stritime strftime strgtime TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is the right way to use the DateTime class? $date = new DateTime(); $date = new class DateTime(); $date = get_Class(DateTime); $date = class DateTime; TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following code?<br/>If say date is 22/06/2013.<br/>echo "Today is ".date("F d, Y") Today is June 22, 2013 Today is 06-22-2013 Today is 22 June, 2013 Today is 22-06-2013 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following functions do not return a timestamp?<br/>1. time()<br/>2. date()<br/>3. strtotime()<br/>4. localtime()<br/>5. gmmktime() Option 1 and 5 Option 2 and 4 Option 1 and 4 Option 2 and 4 TRUE ANSWER : ? YOUR ANSWER : ?
You must make a call to ................... to specify what time zone you want calculations to take place in before calling any date functions. date_defaulttimezone_set() datedefault_timezone_set() date_default_timezone_set() date_default_timezoneset() TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following format parameter can be used to identify timezone? E I N T TRUE ANSWER : ? YOUR ANSWER : ?
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed? $date = Date(“22 JUNE 2013”) $date = new DateTime(“22 JUNE 2013”) $date = DateTime(“22 JUNE 2013”) $date = new Date(“JUNE 22 2013”) TRUE ANSWER : ? YOUR ANSWER : ?
Among the four PHP DateTimeZone classes given below how many are static?<br/>1. listAbbreviations()<br/>2. getName()<br/>3. getOffset()<br/>4. listIdentifiers() 3 4 1 2 TRUE ANSWER : ? YOUR ANSWER : ?
.......... Returns the time of sunrise for a given day / location. date_sunrise() date-sunrise() datesunrise() date.sunrise() TRUE ANSWER : ? YOUR ANSWER : ?