Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ format
Function
format
django/utils/dateformat.py:326–329 ·
view source on GitHub ↗
Convenience function
(value, format_string)
Source
from the content-addressed store, hash-verified
324
325
326
def
format(value, format_string):
327
"Convenience function"
328
df = DateFormat(value)
329
return
df.format(format_string)
330
331
332
def
time_format(value, format_string):
Callers
11
date
Function · 0.90
test_date
Method · 0.90
test_naive_datetime
Method · 0.90
test_naive_ambiguous_datetime
Method · 0.90
test_datetime_with_local_tzinfo
Method · 0.90
test_datetime_with_tzinfo
Method · 0.90
test_epoch
Method · 0.90
__format__
Method · 0.70
test_polygons_from_bbox
Method · 0.50
test_parse_python_format
Method · 0.50
test_lazy_format
Method · 0.50
Calls
2
DateFormat
Class · 0.85
format
Method · 0.45
Tested by
9
test_date
Method · 0.72
test_naive_datetime
Method · 0.72
test_naive_ambiguous_datetime
Method · 0.72
test_datetime_with_local_tzinfo
Method · 0.72
test_datetime_with_tzinfo
Method · 0.72
test_epoch
Method · 0.72
test_polygons_from_bbox
Method · 0.40
test_parse_python_format
Method · 0.40
test_lazy_format
Method · 0.40