]> git.parisson.com Git - tools.git/commitdiff
fix date display
authoryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Fri, 24 Jul 2009 10:01:35 +0000 (10:01 +0000)
committeryomguy <yomguy@457c0346-1240-4656-8a5a-9edca8063506>
Fri, 24 Jul 2009 10:01:35 +0000 (10:01 +0000)
git-svn-id: http://svn.parisson.org/svn/tools/trunk@70 457c0346-1240-4656-8a5a-9edca8063506

various/date_filter.py

index e8770afdf09dd350a30b5d98dee6e65043e1c735..a82e2faf395905bc6415e5c002a07716770fdeba 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
 
 import os,  time, sys
 
@@ -20,6 +21,6 @@ print "%-40s %s" % ("filename:", "last modified:")
 for file in date_file_list:
     if os.path.isfile(file[1]):
         #folder, file_name = os.path.split(file[1])
-        file_date = time.strftime("%m/%d/%y %H:%M:%S", file[0])
+        file_date = time.strftime("%y/%m/%d %H:%M:%S", file[0])
         #print "%-40s %s" % (file_name, file_date)
-        print "%-40s %s" % (file[1], file_date)
+        print "%-50s %s" % (file[1], file_date)