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 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 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 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 never match None of these The two will only match if the local time zone is GMT There is no difference It depends on the number of hours between the local time zone and GMT The two will never match None of these The two will only match if the local time zone is GMT There is no difference ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp What will the following script output?$time = strtotime ('2004/01/01');echo date ('H:i:s', $time); 00:i:00 12:00:00 12:i:00 0:00:00 00:i:00 12:00:00 12:i:00 0:00:00 ANSWER DOWNLOAD EXAMIANS APP
PHP Date and Timestamp The getdate() function returns A Boolean An integer A floating-point number An array A string A Boolean An integer A floating-point number An array A string 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, with leading zero Daylight saving time Complete text representation of month Day of month, without zeros Day of month, with leading zero Daylight saving time Complete text representation of month Day of month, without zeros ANSWER DOWNLOAD EXAMIANS APP