Class DateTimeParameter

java.lang.Object
google.registry.tools.params.ParameterConverterValidator<org.joda.time.DateTime>
google.registry.tools.params.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.
  • Constructor Details

    • DateTimeParameter

      public DateTimeParameter()
  • Method Details

    • convert

      public org.joda.time.DateTime convert(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>