Skip to main content

Iterators for datetime objects.

Project description

The recur module provides iterators for datetime objects. Recurrence patterns can be provided in natural language strings like “every 3 days” or “Sept 14” (currently, only a English Locale is provided). For example, this code: d = recur.Recurrence(datetime.date(1999, 11, 28), “-5 each month”) Will make “d” an iterator, producing datetime.date objects starting with datetime.date(1999, 12, 26), and then proceeding to the fifth-from-last date of each succeeding month.

The recur module now includes a Worker class, which spawns new threads as needed to accomplish recurring tasks. Subclass it and override its “work” method. You can set its “paused” and “terminated” attributes to True/False as needed to manage a recurring task.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recur-r105.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

recur-r105-py2.4.egg (19.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page