Template Function nix::util::convertToSeconds

Function Documentation

template<typename T>
T nix::util::convertToSeconds(const std::string &unit, T value)

Converts minutes and hours to seconds.

Parameters
  • unit – The original unit (i.e. h for hour, or min for minutes)

  • value – The original value

Returns

The value in converted to seconds