Hacktoberfest-SCE / Lets-Build

19 stars 44 forks source link

Time Conversion #51

Open pranavbharadwaj007 opened 3 years ago

pranavbharadwaj007 commented 3 years ago

Given a time in -hour AM/PM format, convert it to military (24-hour) time.

Note: - 12:00:00AM on a 12-hour clock is 00:00:00 on a 24-hour clock.

Example Return '12:01:00'. Return '00:01:00'. Function Description Complete the timeConversion function in the editor below. It should return a new string representing the input time in 24 hour format.

timeConversion has the following parameter(s):

string s: a time in hour format Returns

string: the time in hour format Input Format

A single string that represents a time in -hour clock format .

Constraints

All input times are valid Sample Input 0 07:05:45PM

Sample Output 0 19:05:45

samruddhideode commented 3 years ago

please assign this issue to me

abhinav69-dogra commented 3 years ago

please this issue to me

Vaibhavwani11 commented 3 years ago

Can you please assign this issue to me..

MeetD99 commented 1 year ago

I would like to Contribute to this Issue, Can you assign me this as well. I can get a PR done very soon.