Class DateTimeParameter

  • All Implemented Interfaces:
    com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<org.joda.time.DateTime>

    public final class DateTimeParameter
    extends ParameterConverterValidator<org.joda.time.DateTime>
    DateTime CLI parameter converter/validator. Can be ISO or millis from epoch.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.joda.time.DateTime convert​(java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DateTimeParameter

        public DateTimeParameter()
    • Method Detail

      • convert

        public org.joda.time.DateTime convert​(java.lang.String value)
        Specified by:
        convert in interface com.beust.jcommander.IStringConverter<org.joda.time.DateTime>
        Specified by:
        convert in class ParameterConverterValidator<org.joda.time.DateTime>