Package org.syncany.cli.util
Class CommandLineUtil
- java.lang.Object
-
- org.syncany.cli.util.CommandLineUtil
-
public class CommandLineUtil extends java.lang.Object
Various CLI-utilities.
-
-
Constructor Summary
Constructors Constructor Description CommandLineUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
parseTimePeriod(java.lang.String period)
Parses a string of type "1y2mo3w4d5h6m7s", where the units represent years, months, weeks, days, hours, minutes and second respectively.
-
-
-
Constructor Detail
-
CommandLineUtil
public CommandLineUtil()
-
-
Method Detail
-
parseTimePeriod
public static long parseTimePeriod(java.lang.String period)
Parses a string of type "1y2mo3w4d5h6m7s", where the units represent years, months, weeks, days, hours, minutes and second respectively. returns: the duration of the period represented by the string in seconds.
-
-