PHP Date and Timestamp Say you want to calculate the date 45 days from the present date which one of the following statement will you use? strtotime(“-45 days”) totime(“+45”) totime(“+45 days”) strtotime(“+45 days”) strtotime(“-45 days”) totime(“+45”) totime(“+45 days”) strtotime(“+45 days”) 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_default_timezone_set(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_default_timezone(‘Europe/London’); date_default_timezone_set(‘Europe/London’); date_set_default_timezone(‘Europe/London’); date_set_timezone(‘Europe/London’); date_default_timezone(‘Europe/London’); ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp If the format is F then which one of the following will be returned? Day of month, without zeros Complete text representation of month Day of month, with leading zero Daylight saving time Day of month, without zeros Complete text representation of month Day of month, with leading zero Daylight saving time ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone? There is no difference None of these The two will never match It depends on the number of hours between the local time zone and GMT The two will only match if the local time zone is GMT There is no difference None of these The two will never match It depends on the number of hours between the local time zone and GMT The two will only match if the local time zone is GMT ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp .......... Returns the time of sunrise for a given day / location. datesunrise() date.sunrise() date_sunrise() date-sunrise() datesunrise() date.sunrise() date_sunrise() date-sunrise() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What will be the output of the following PHP code if date is 24/02/2008?$date = new DateTime();echo $date->format('l,F,js,Y') Sunday, February 24th 2008 Sunday, 24 02 2008 Sunday, 24th February 2008 Sunday, 02 24 2008 Sunday, February 24th 2008 Sunday, 24 02 2008 Sunday, 24th February 2008 Sunday, 02 24 2008 ANSWER DOWNLOAD EXAMIANS APP