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.ext.ndb.model.DateTimeProperty Class Reference
Inheritance diagram for google.appengine.ext.ndb.model.DateTimeProperty:
google.appengine.ext.ndb.model.Property google.appengine.ext.ndb.model.ModelAttribute google.appengine.ext.ndb.model.DateProperty google.appengine.ext.ndb.model.TimeProperty

Public Member Functions

def __init__
 
- Public Member Functions inherited from google.appengine.ext.ndb.model.Property
def __init__
 
def __repr__
 
def __eq__
 
def __ne__
 
def __lt__
 
def __le__
 
def __gt__
 
def __ge__
 
def __neg__
 
def __pos__
 
def __get__
 
def __set__
 
def __delete__
 

Additional Inherited Members

- Static Public Attributes inherited from google.appengine.ext.ndb.model.Property
 IN = _IN
 

Detailed Description

A Property whose value is a datetime object.

Note: Unlike Django, auto_now_add can be overridden by setting the
value before writing the entity.  And unlike classic db, auto_now
does not supply a default value.  Also unlike classic db, when the
entity is written, the property values are updated to match what
was written.  Finally, beware that this also updates the value in
the in-process cache, *and* that auto_now_add may interact weirdly
with transaction retries (a retry of a property with auto_now_add
set will reuse the value that was set on the first try).

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