PHP Date and Timestamp Which of the following functions do not return a timestamp?1. time()2. date()3. strtotime()4. localtime()5. gmmktime() Option 2 and 4 Option 1 and 4 Option 1 and 5 Option 2 and 4 Option 2 and 4 Option 1 and 4 Option 1 and 5 Option 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which of the following statements can be used to add two months to the existing date? $date = modify(‘+2 months’); $date->modify(‘2+ months’); $date->modify(‘+2 months’); $date = modify(‘2+ months’); $date = modify(‘+2 months’); $date->modify(‘2+ months’); $date->modify(‘+2 months’); $date = modify(‘2+ months’); ANSWER DOWNLOAD EXAMIANS APP
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 What is the difference, in seconds, between the current timestamp in the GMT time zone and the current timestamp in your local time zone? 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 The two will never match None of these 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 The two will never match None of these ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp .......... Returns the time of sunrise for a given day / location. date-sunrise() date.sunrise() datesunrise() date_sunrise() date-sunrise() date.sunrise() datesunrise() date_sunrise() ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp Which method is simply an object-oriented version of date()? DateTime::setTime() DateTime::format() DateTime::modify() DateTime::setDate() DateTime::setTime() DateTime::format() DateTime::modify() DateTime::setDate() ANSWER DOWNLOAD EXAMIANS APP