core.files.storage.Storage.get_modified_time()

get_modified_time(name) [source]

New in Django 1.10.

Returns a datetime of the last modified time of the file. For storage systems unable to return the last modified time this will raise NotImplementedError.

If USE_TZ is True, returns an aware datetime, otherwise returns a naive datetime in the local timezone.

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.