소스 검색

additional non-unix time stamp columns for line graphs

Schultz 8 년 전
부모
커밋
dd303413db
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9
    0
      gitstats

+ 9
- 0
gitstats 파일 보기

@@ -1107,6 +1107,11 @@ class HTMLReportCreator(ReportCreator):
1107 1107
             fgl.write('%d' % stamp)
1108 1108
             fgc.write('%d' % stamp)
1109 1109
 
1110
+             # For easy ctrl f search of the downloaded file, give the proper non-unix timestamp, NEEDS TESTING
1111
+            stamp_converted = datetime.datetime.fromtimestamp(int(stamp)).strftime('%Y-%m-%d %H:%M:%S')
1112
+            fgl.write('%d' % stamp_converted)
1113
+            fgc.write('%d' % stamp_converted)
1114
+
1110 1115
             # hour_of_week_TEST.write("%d\t" %(stamp))
1111 1116
             # commits_by_author_TEST.write("%d\t" %(stamp))
1112 1117
 
@@ -1123,6 +1128,10 @@ class HTMLReportCreator(ReportCreator):
1123 1128
             # hour_of_week_TEST.write("\n")
1124 1129
             # commits_by_author_TEST.write("\n")
1125 1130
 
1131
+           
1132
+
1133
+
1134
+
1126 1135
             fgl.write('\n')
1127 1136
             fgc.write('\n')
1128 1137
         fgl.close()