Skip to content

Instantly share code, notes, and snippets.

@renatodex
Created October 2, 2020 02:56
Show Gist options
  • Save renatodex/ac7b2e4a5f9dfeb0426a368e381c3a43 to your computer and use it in GitHub Desktop.
Save renatodex/ac7b2e4a5f9dfeb0426a368e381c3a43 to your computer and use it in GitHub Desktop.
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