Skip to content

Instantly share code, notes, and snippets.

@gh640
Created February 6, 2016 12:45
Show Gist options
  • Select an option

  • Save gh640/1dbeec86c3d46410a87d to your computer and use it in GitHub Desktop.

Select an option

Save gh640/1dbeec86c3d46410a87d to your computer and use it in GitHub Desktop.
1 日の時間を 30 分刻みですべて生成するスクリプト
# coding: utf-8
# 1 日の 30 分刻みの時刻をすべて生成する
# 00:00, 00:30, 01:30, ..., 23:30
hours = []
for h in range(24):
for m in (0, 30):
hours.append('{0:02d}:{1:02d}'.format(h, m))
print(hours)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment