core.files.storage.Storage.get_accessed_time()

get_accessed_time(name) [source]

New in Django 1.10.

Returns a datetime of the last accessed time of the file. For storage systems unable to return the last accessed 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
2016-10-09 18:34:46
Comments
Leave a Comment

Please login to continue.