5 kyu

Human Readable Time

48,537 of 150,082BattleRattle

Description:

Write a function, which takes a non-negative integer (seconds) as input and returns the time in a human-readable format (HH:MM:SS)

  • HH = hours, padded to 2 digits, range: 00 - 99
  • MM = minutes, padded to 2 digits, range: 00 - 59
  • SS = seconds, padded to 2 digits, range: 00 - 59

The maximum time never exceeds 359999 (99:59:59)

You can find some examples in the test fixtures.

Date Time
Mathematics
Algorithms

Stats:

CreatedOct 23, 2013
PublishedOct 23, 2013
Warriors Trained212587
Total Skips19360
Total Code Submissions389369
Total Times Completed150082
JavaScript Completions48537
Haskell Completions1373
Clojure Completions374
Java Completions18044
C# Completions11507
Python Completions62423
Julia Completions114
TypeScript Completions3241
Elixir Completions205
PHP Completions1966
Shell Completions137
C Completions1770
Go Completions1341
Rust Completions1192
COBOL Completions19
Factor Completions15
Lua Completions198
Scala Completions106
Dart Completions104
Total Stars2300
% of votes with a positive feedback rating89% of 10184
Total "Very Satisfied" Votes8078
Total "Somewhat Satisfied" Votes1889
Total "Not Satisfied" Votes217
Ad
Contributors
  • BattleRattle Avatar
  • jhoffner Avatar
  • bkaes Avatar
  • joshwalters Avatar
  • mcastellini Avatar
  • TellowKrinkle Avatar
  • marcsantiago Avatar
  • HardTourVela Avatar
  • samhstn Avatar
  • Chrono79 Avatar
  • Voile Avatar
  • monadius Avatar
  • hobovsky Avatar
  • scarrascoh Avatar
  • stellartux Avatar
  • trashy_incel Avatar
  • teoriachaosu Avatar
  • akar-0 Avatar
  • Kacarott Avatar
  • tri@ Avatar
  • ninjaasmoke Avatar
  • fcr-- Avatar
  • KayleighWasTaken Avatar
  • saudiGuy Avatar
Ad