Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Conversion #51

Open
pranavbharadwaj007 opened this issue Oct 1, 2021 · 4 comments
Open

Time Conversion #51

pranavbharadwaj007 opened this issue Oct 1, 2021 · 4 comments

Comments

@pranavbharadwaj007
Copy link
Contributor

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.

  • 12:00:00PM on a 12-hour clock is 12: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
Copy link

please assign this issue to me

@abhinav69-dogra
Copy link

please this issue to me

@Vaibhavwani11
Copy link

Can you please assign this issue to me..

@MeetD99
Copy link

MeetD99 commented Oct 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants