Re: modification time in Python - Django

2014-03-04 Thread Paul J Stevens
On 02-03-14 20:49, Jaap van Wingerde wrote: > views.py: > ... > pwd = os.path.dirname(os.path.realpath(__file__ )) > home_lastmod = > strftime('%Y-%m-%dT%H:%m:%SZ',gmtime(os.path.getmtime(pwd+'/templates/art_index.html'))) > ... > > The template says: "2014-03-02T19:03:55Z". The strtime argumen

modification time in Python - Django

2014-03-03 Thread Jaap van Wingerde
views.py: ... pwd = os.path.dirname(os.path.realpath(__file__ )) home_lastmod = strftime('%Y-%m-%dT%H:%m:%SZ',gmtime(os.path.getmtime(pwd+'/templates/art_index.html'))) ... The template says: "2014-03-02T19:03:55Z". ... jaap@liakoster:~$ python Python 2.7.3 (default, Jan 2 2013, 13:56:14) [GC