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

Public Member Functions

def __init__
 
def GetMatch
 
- Public Member Functions inherited from google.appengine.cron.groctimespecification.TimeSpecification
def GetMatches
 
def GetMatch
 

Public Attributes

 interval
 
 period
 
 synchronized
 
 seconds
 
 timezone
 
 start_time
 
 end_time
 

Detailed Description

A time specification for a given interval.

An Interval type spec runs at the given fixed interval. It has the following
attributes:
period - the type of interval, either 'hours' or 'minutes'
interval - the number of units of type period.
synchronized - whether to synchronize the times to be locked to a fixed
    period (midnight in the specified timezone).
start_time, end_time - restrict matches to a given range of times every day.
    If these are None, there is no restriction.  Otherwise, they are
    datetime.time objects.
timezone - the time zone in which start_time and end_time should be
    interpreted, or None (defaults to UTC).  This is a pytz timezone object.

Member Function Documentation

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

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'

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