If planning time is troublesome in Linux,
Use the awk script as follows
BEGIN {FS=<span>"</span><span>:</span><span>"</span>;OFS=<span>"</span><span>:</span><span>"</span><span>} {total_seconds</span>=total_seconds+$<span>3</span><span>} total_seconds</span>>=<span>60</span> {total_sec>60<span> $</span><span>2</span>=$<span>2</span>+<span>1</span><span> } {total_minutes</span>=total_minutes+$<span>2</span><span> $</span><span>2</span>=$<span>2</span>+<span>1</span><span> } {total_minutes</span>=total_minutes+$<span>2</span><span>} total_minutes</span>>=<span>60</span>{total_minutes=total_minutes-<span>60</span><span> $</span><span>1</span>=$<span>1</span>+<span>1</span><span>} {total_hours</span>=total_hours+$<span>1</span><span>} END{print $</span><span>1</span>,$<span>2</span>,$<span>3</span>}
Email:362299908@qq.com
The above introduces the linux awk time calculation script, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.