core.files.storage.Storage.get_created_time()

get_created_time(name) [source]

New in Django 1.10.

Returns a datetime of the creation time of the file. For storage systems unable to return the creation 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:47
Comments
Leave a Comment

Please login to continue.