Last active
June 29, 2018 08:21
-
-
Save maecha/f59a96d4e42aa2455aca5de5dfc95a35 to your computer and use it in GitHub Desktop.
Get the increment of time (string), increment 30 mins
This file contains 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 get_hoge_times | |
48.times.map.each_with_index {|i| (Time.parse('0:00') + 30.minutes * i).strftime('%H:%M')} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment