MCPcopy
hub / github.com/django/django / timezone_today

Function timezone_today

django/views/generic/dates.py:818–823  ·  view source on GitHub ↗

Return the current date in the current time zone.

()

Source from the content-addressed store, hash-verified

816
817
818def timezone_today():
819 """Return the current date in the current time zone."""
820 if settings.USE_TZ:
821 return timezone.localdate()
822 else:
823 return datetime.date.today()

Callers 2

get_dated_querysetMethod · 0.85
_get_next_prevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected