incrementUnit(num, unit, event) {
    event.preventDefault()

    const durationObject = {}

    durationObject[unit] = num
    const newTime = this.state.time.plus(Duration.fromObject(durationObject))

    this.props.updateTime(newTime.toISOTime())

    this.setState({
      time: newTime,
    })

    if (this.props.refocusOnClick) {
      this.props.refocusOnClick()
    }
  }
/**
   * Increment the inputted unit by the inputted amount, n
   *
   * This function does not change the time in the input (only container display)
   * @param {int} num - the amount to increment the unit by
   * @param {int} unit - the unit to be incremented (i.e. hour or minute)
   * @param {Event} event - the event that caused this handler to be invoked
   *   (e.g. the click event from the next or previous button on a ticker)
   * @return {void}
   */
Increment the inputted unit by the inputted amount, n
This function does not change the time in the input (only container display)
@param {int} num - the amount to increment the unit by
@param {int} unit - the unit to be incremented
@param {Event} event - the event that caused this handler to be invoked

@return {void}
Increment the inputted unit by the inputted amount n This function does not change the time in the input ( only container display ) @param { int } num - the amount to increment the unit by @param { int } unit - the unit to be incremented @param { Event } event - the event that caused this handler to be invoked @return { void }
incrementUnit(num, unit, event) {
    event.preventDefault()
    const durationObject = {}
    durationObject[unit] = num
    const newTime = this.state.time.plus(Duration.fromObject(durationObject))
    this.props.updateTime(newTime.toISOTime())
    this.setState({
      time: newTime,
    })
    if (this.props.refocusOnClick) {
      this.props.refocusOnClick()
    }
  }
incrementUnit ( num , unit , event ) { event . preventDefault ( ) const durationObject = { } durationObject [ unit ] = num const newTime = this . state . time . plus ( Duration . fromObject ( durationObject ) ) this . props . updateTime ( newTime . toISOTime ( ) ) this . setState ( { time : newTime , } ) if ( this . props . refocusOnClick ) { this . props . refocusOnClick ( ) } }
Increment the inputted unit by the inputted amount, n
 This function does not change the time in the input (only container display)
 @param {int} num - the amount to increment the unit by
 @param {int} unit - the unit to be incremented (i.e.
Increment the inputted unit by the inputted amount n This function does not change the time in the input ( only container display ) @param { int } num - the amount to increment the unit by @param { int } unit - the unit to be incremented ( i . e .