do .upper() only once in dnsutil._to_seconds()