Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
39e3ef88
Kaydet (Commit)
39e3ef88
authored
Kas 15, 2014
tarafından
Andrew Godwin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge pull request #3516 from jaylett/filestorage-timezones
Fixed #23827 -- TZ behavior in Storage API ref doc
üst
6d2cad14
88e13b44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
storage.txt
docs/ref/files/storage.txt
+18
-9
No files found.
docs/ref/files/storage.txt
Dosyayı görüntüle @
39e3ef88
...
@@ -82,17 +82,25 @@ The Storage Class
...
@@ -82,17 +82,25 @@ The Storage Class
behaviors that all other storage systems can inherit or override
behaviors that all other storage systems can inherit or override
as necessary.
as necessary.
.. note::
For methods returning naive ``datetime`` objects, the
effective timezone used will be the current value of
``os.environ['TZ']``; note that this is usually set from
Django's :setting:`TIME_ZONE`.
.. method:: accessed_time(name)
.. method:: accessed_time(name)
Returns a ``datetime`` object containing the last accessed time of the
Returns a naive ``datetime`` object containing the last
file. For storage systems that aren't able to return the last accessed
accessed time of the file. For storage systems that aren't
time this will raise ``NotImplementedError`` instead.
able to return the last accessed time this will raise
``NotImplementedError`` instead.
.. method:: created_time(name)
.. method:: created_time(name)
Returns a ``datetime`` object containing the creation time of the file.
Returns a naive ``datetime`` object containing the creation
For storage systems that aren't able to return the creation time this
time of the file. For storage systems that aren't able to
will raise ``NotImplementedError`` instead.
return the creation time this will raise
``NotImplementedError`` instead.
.. method:: delete(name)
.. method:: delete(name)
...
@@ -139,9 +147,10 @@ The Storage Class
...
@@ -139,9 +147,10 @@ The Storage Class
.. method:: modified_time(name)
.. method:: modified_time(name)
Returns a ``datetime`` object containing the last modified time. For
Returns a naive ``datetime`` object containing the last
storage systems that aren't able to return the last modified time, this
modified time. For storage systems that aren't able to return
will raise ``NotImplementedError`` instead.
the last modified time, this will raise
``NotImplementedError`` instead.
.. method:: open(name, mode='rb')
.. method:: open(name, mode='rb')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment