toTimestamp method

String toTimestamp()

Implementation

String toTimestamp() {
  double hours = inSeconds / 3600;
  int h = hours.floor();
  int m = ((hours - h) * 60).floor();
  int s = ((((hours - h) * 60) - m) * 60).floor();
  return "$h:$m:$s";
}