$dateline = TIMENOW - (substr($currenttime, 8, 2) * 3600 + substr($currenttime, 10, 2) * 60 + substr($currenttime, 12, 2));