We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Time Conversion
  2. Discussions

Time Conversion

Problem
Submissions
Leaderboard
Discussions
Editorial

    You are viewing a single comment's thread. Return to all comments →

  • harrison6
    9 months ago+ 0 comments

    I don't know if this is in the spirit of these types of programming challenges, but I'm going to insist that this is the correct industry solution (c#):

        public static string timeConversion(string s)
        {
            var date = DateTime.Parse(s);
            return date.ToString("HH:mm:ss");
        }
    
    79|
    Permalink
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature