Class Timestring
java.lang.Object
tech.guilhermekaua.spigotboot.core.utils.Timestring
A utility class for parsing durations
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Timestring
public Timestring()
-
-
Method Details
-
duration
convert `str` to ms- Parameters:
str- the string to parseformat- the format to return- Returns:
- the parsed value in the specified format
-
durationLong
convert `str` to ms- Parameters:
str- the string to parseformat- the format to return- Returns:
- the parsed value in the specified format
-