Last active
December 30, 2015 08:08
-
-
Save mikesorae/7800208 to your computer and use it in GitHub Desktop.
調整さん日付出力用rubyスクリプト
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
# echoで指定した日付の範囲内で一覧を出力 | |
echo 12/10 20:00..12/25 20:00 | ruby -r date -lne '$_.split("..").tap{|r| break DateTime.parse(r.first)..DateTime.parse(r.last)}.each{|d| puts d.strftime("%m/%d(%a) %H:%M~")}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
曜日のlocaleとstep変えられるようにしたい