Skip to content

Instantly share code, notes, and snippets.

@augustjoki
Created October 24, 2008 20:35
Show Gist options
  • Save augustjoki/19579 to your computer and use it in GitHub Desktop.
Save augustjoki/19579 to your computer and use it in GitHub Desktop.
>>> td = 1224831600.0
>>> tm = 1224918000.0
>>> cal = calendar.open()
>>> e = cal.find_instances(td, tm)
>>> e
[{'id': 99, 'datetime': 1224774000.0}]
# datetime is less than td which is the start time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment