function getViewValue(timeInSeconds) {
        _timeInSeconds = timeInSeconds;
        var remainingTime = timeInSeconds;
        var hours = Math.floor(timeInSeconds / 3600);
        remainingTime = remainingTime % 3600;
        var minutes = Math.floor(remainingTime / 60);
        var seconds = remainingTime % 60;
        var viewValue = _.padStart(hours, 2, '0')  + ':' + _.padStart(minutes, 2, '0') + ':' + _.padStart(seconds, 2, '0');
        return viewValue;
      }
Directive for formatting from mm:ss to int and back