Description Usage Arguments Examples
Guesses the strptime format of a time string
1 | guess_time_format(string)
|
string |
a string |
1 2 3 4 5 | guess_time_format("12:00 AM") #=> "%I:%M %p"
guess_time_format("23:59:23") #=> "%H:%M:%S"
guess_time_format("23:59") #=> "%H:%M"
guess_time_format("23:59:59") #=> "%H:%M:%S"
guess_time_format("2:24 AM") #=> "%l:%M %p"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.