Class CliUnitConverters.DURATION

java.lang.Object
org.djutils.cli.CliUnitConverters.DURATION
All Implemented Interfaces:
CommandLine.ITypeConverter<org.djunits.value.vdouble.scalar.Duration>
Enclosing class:
CliUnitConverters

public static class CliUnitConverters.DURATION extends Object implements CommandLine.ITypeConverter<org.djunits.value.vdouble.scalar.Duration>
Convert a duration String with unit on the command line to a Duration scalar.
  • Constructor Details

    • DURATION

      public DURATION()
  • Method Details

    • convert

      @Generated(value="org.djunits.generator.GenerateCliConverters", date="2025-06-07T10:15:31.719700800Z") public org.djunits.value.vdouble.scalar.Duration convert(String value) throws Exception
      Specified by:
      convert in interface CommandLine.ITypeConverter<org.djunits.value.vdouble.scalar.Duration>
      Throws:
      Exception