MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / parseTTL

Method parseTTL

src/main/java/core/org/xbill/DNS/TTL.java:81–84  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

79 * @throws NumberFormatException The string was not in a valid TTL format.
80 */
81public static long
82parseTTL(String s) {
83 return parse(s, true);
84}
85
86public static String
87format(long ttl) {

Callers 2

getTTLMethod · 0.95
parseTTLClassAndTypeMethod · 0.95

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected