warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
|| } else if(60 < sec < 3600) {
|| ~~~^~~~~
warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
|| } else if(3600 < sec < 86400) {
|| ~~~~~^~~~~