Parses a TTL, which can either be expressed as a number or a BIND-style string with numbers and units. @param s The string representing the TTL @return The TTL as a number of seconds @throws NumberFormatException The string was not in a valid TTL format.
(String s)
| 79 | * @throws NumberFormatException The string was not in a valid TTL format. |
| 80 | */ |
| 81 | public static long |
| 82 | parseTTL(String s) { |
| 83 | return parse(s, true); |
| 84 | } |
| 85 | |
| 86 | public static String |
| 87 | format(long ttl) { |
no test coverage detected