Last active
December 15, 2020 17:56
-
-
Save karakanb/43ac962c795e059ec0374844f7e6ba16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func parseWithDateTime(inputString string) int { | |
t, _ := time.Parse("3PM", inputString) | |
number, _ := strconv.Atoi(t.Format("15")) | |
return number | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment