diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-10-08 15:11:59 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-10-08 15:11:59 +0000 |
| commit | 58b704d8da2347e1db6930c80eb117dea1684d72 (patch) | |
| tree | ef1eddf94456c871dda8e90bef06d8bf062e4ce0 /docs/ref | |
| parent | 4d4d68a2cd8d93ce4bc4280b47051f294b280e73 (diff) | |
Fixed #10497 -- Added a few time-related methods to the storage API. Thanks for the report and patch to Stephan Jaekel.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14012 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/files/storage.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt index 2b055bb60b..b27ea1556b 100644 --- a/docs/ref/files/storage.txt +++ b/docs/ref/files/storage.txt @@ -13,6 +13,33 @@ The local filesystem path where the file can be opened using Python's standard ``open()``. For storage systems that aren't accessible from the local filesystem, this will raise ``NotImplementedError`` instead. +``Storage.accessed_time(name)`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 1.3 + +Returns a ``datetime`` object containing the last accessed time of the file. +For storage systems that aren't able to return the last accessed time, this +will raise ``NotImplementedError`` instead. + +``Storage.created_time(name)`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 1.3 + +Returns a ``datetime`` object containing the creation time of the file. +For storage systems that aren't able to return the creation time, this +will raise ``NotImplementedError`` instead. + +``Storage.modified_time(name)`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. versionadded:: 1.3 + +Returns a ``datetime`` object containing the last modified time. For storage +systems that aren't able to return the last modified time, this will raise +``NotImplementedError`` instead. + ``Storage.size(name)`` ~~~~~~~~~~~~~~~~~~~~~~ |
