j2labs/dictshield — pull request #27 by SeanOC (2011-11-02 14:08:42+00:00)
Title: Added a Timestamp field

This adds a new version of the DateTimeField that serializes down to a unix timestamp. This is useful in situations where there are benefits to storing date time info as an int instead of a string.

To keep things easy to use, the field uses the python-dateutil library to handle timezone conversions (unix timestamps must be stored as UTC). Accordingly the new field lives within a "temporal" module within the fields module and it raises an explicit error on import if the dateutil module isn't available.