~doctormo/python-crontab/trunk

« back to all changes in this revision

Viewing changes to crontab.py

  • Committer: Martin Owens
  • Date: 2015-12-21 18:25:39 UTC
  • Revision ID: doctormo@gmail.com-20151221182539-5im2hztbhsuq8dpc
Add test for new frequency

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
        """Returns the number of time this item will execute in any day"""
517
517
        return self.slices.frequency_per_day()
518
518
 
 
519
    def frequency_per_hour(self):
 
520
        """Returns the number of times this item will execute in any hour"""
 
521
        return self.slices.frequency_per_hour()
 
522
 
519
523
    def schedule(self, date_from=None):
520
524
        """Return a croniter schedule is available."""
521
525
        if not date_from: