7 kyu

Time Converter: hours, minutes, seconds and milliseconds

541 of 1,152srMarquinho

Description:

Given a time in a time format class, return it without year, month and day.

It should return a string including milliseconds with 3 decimals.

Example:

Time.new(2016, 2, 8, 16, 42, 59)
#Should return: 
"16:42:59,000"
datetime(2016, 2, 8, 16, 42, 59)
#Should return: 
"16:42:59,000"
new Date(2016, 2, 8, 16, 42, 59)
//Should return: 
"16:42:59,000"
Date Time
Parsing
Refactoring

More By Author:

Check out these other kata created by srMarquinho

Stats:

CreatedFeb 8, 2016
PublishedFeb 8, 2016
Warriors Trained2419
Total Skips91
Total Code Submissions3372
Total Times Completed1152
Ruby Completions118
JavaScript Completions525
Python Completions541
Total Stars31
% of votes with a positive feedback rating88% of 197
Total "Very Satisfied" Votes155
Total "Somewhat Satisfied" Votes35
Total "Not Satisfied" Votes7
Ad
Contributors
  • srMarquinho Avatar
  • GiacomoSorbi Avatar
  • bidouille Avatar
  • hobovsky Avatar
  • Just4FunCoder Avatar
Ad