How do I add hours to current time in Unix?

How do I add hours to current time in Unix?
Answer
Method 1: Convert 24 hours to seconds and add the result to current Unix time. echo time() + (24*60*60);
 

Tìm kiếm

Back
Top