App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.cron.groctimespecification.TimeSpecification Class Reference
Inheritance diagram for google.appengine.cron.groctimespecification.TimeSpecification:
google.appengine.cron.groctimespecification.IntervalTimeSpecification google.appengine.cron.groctimespecification.SpecificTimeSpecification

Public Member Functions

def GetMatches
 
def GetMatch
 

Detailed Description

Base class for time specifications.

Member Function Documentation

def google.appengine.cron.groctimespecification.TimeSpecification.GetMatch (   self,
  start 
)
Returns the next match after time start.

Must be implemented in subclasses.

Arguments:
  start: a datetime to start from. Matches will start from after this time.
  This may be in any pytz time zone, or it may be timezone-naive
  (interpreted as UTC).

Returns:
  a datetime object in the timezone of the input 'start'
def google.appengine.cron.groctimespecification.TimeSpecification.GetMatches (   self,
  start,
  n 
)
Returns the next n times that match the schedule, starting at time start.

Arguments:
  start: a datetime to start from. Matches will start from after this time.
  n:     the number of matching times to return

Returns:
  a list of n datetime objects

The documentation for this class was generated from the following file: