1 2 3 4 | # Unlike datetime.isoformat(), this works in UTC and has the trailing Z which is
# required by JSON parsers such as YAHOO.lang.JSON.stringToDate:
time.strftime('%Y-%m-%dT%H:%M:%SZ', date.utctimetuple())
|
More like this
- JSON encode ISO UTC datetime by japerk 2 years, 10 months ago
- parse date template tag by robhudson 2 years, 3 months ago
- Client-side Django-style date & time string formatting by robbie 4 years, 11 months ago
- isoutc template filter by japerk 2 years, 10 months ago
- YUI editor for flatpages inside admin interface by nnrcschmdt 3 years, 10 months ago
Comments