PHP Date and Timestamp The getdate() function returns An integer A string A floating-point number A Boolean An array An integer A string A floating-point number A Boolean An array 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 Which method enables you to calculate whether daylight saving time is in force at a specific date and time? savingTime() getOffset() ISODate() getTranitions() savingTime() getOffset() ISODate() getTranitions() 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? The two will never match There is no difference 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 None of these The two will never match There is no difference 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 None of these ANSWER DOWNLOAD EXAMIANS APP
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 What will the following script output?$time = strtotime ('2004/01/01');echo date ('H:i:s', $time); 00:i:00 0:00:00 12:00:00 12:i:00 00:i:00 0:00:00 12:00:00 12:i:00 ANSWER DOWNLOAD EXAMIANS APP