Format dates according to the RFC 3339 - Import from the Python module by Henry Precheur <henry@precheur.org>