Class DateParameter

java.lang.Object
google.registry.tools.params.ParameterConverterValidator<org.joda.time.DateTime>
google.registry.tools.params.DateParameter
All Implemented Interfaces:
com.beust.jcommander.IParameterValidator, com.beust.jcommander.IStringConverter<org.joda.time.DateTime>

public final class DateParameter extends ParameterConverterValidator<org.joda.time.DateTime>
DateTime CLI parameter converter/validator restricted to dates. The DateTimes produced by this class will always have a time zone of DateTimeZone.UTC.
  • Constructor Details

    • DateParameter

      public DateParameter()
  • 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>