Jump to >

This documentation covers Djblets 2.0. You can see the latest Djblets documentation or all other versions.

djblets.util.dates

http_date(timestamp)[source]

A wrapper around Django’s http_date that accepts DateFields and datetime objects directly.

get_latest_timestamp(timestamps)[source]

Returns the latest timestamp in a list of timestamps.

get_tz_aware_utcnow()[source]

Returns a UTC aware datetime object