Created
October 2, 2020 02:56
-
-
Save renatodex/ac7b2e4a5f9dfeb0426a368e381c3a43 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
def parse_bizarre_time(year, month, day, hour, minute, second) | |
Time.parse("#{year}-#{month}-#{day} #{hour}:#{minute}:#{second}") | |
end | |
parse_bizarre_time(*["2020", "10", "06", "10", "20", "30"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment