name: epoch
author: Anthony C. <achriste@redvoxsound.com>
about: A tool for working with epoch timestamps.

settings:
  - AllowNegativeNumbers

args:
    - epoch:
          help: An (optional) epoch of seconds, milliseconds, microseconds, or nanoseconds. When present, converts the epoch into an UTC datetime.
          index: 1
          required: false
          takes_value: true
          conflicts_with:
              - date_time_parts
    - milliseconds:
          help: Sets the time unit to milliseconds
          long: ms
          conflicts_with:
              - microseconds
              - nanoseconds
    - microseconds:
          help: Sets the time unit to microseconds
          long: us
          conflicts_with:
              - milliseconds
              - nanoseconds
    - nanoseconds:
          help: Sets the time unit to nanoseconds
          long: ns
          conflicts_with:
              - milliseconds
              - microseconds
    - date_time_parts:
          value_name: "year month day [hour] [minute] [s] [ms] [us] [ns]"
          help: Convert parts of a date and time into an epoch timestamp.
          long: dt
          takes_value: true
          min_values: 3
          max_values: 9
          conflicts_with:
              - epoch

