Browse Source

Also print the time

Petra Lamborn 5 years ago
parent
commit
19f851fb09
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      py/downkwh.py

+ 2
- 0
py/downkwh.py View File

@@ -1,6 +1,7 @@
1 1
 from util import getQuery, pickleQuery, getkwh
2 2
 import pandas as p
3 3
 import gc
4
+from datetime import datetime
4 5
 
5 6
 months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
6 7
 mstarts = list(range(1, 13))
@@ -14,6 +15,7 @@ print(mends)
14 15
 for i, m in enumerate(months):
15 16
     print(i)
16 17
     print(m)
18
+    print(datetime.now().time())
17 19
     kwhdata = getkwh('2017-{:02d}-01'.format(mstarts[i]), 
18 20
                      '2017-{:02d}-01'.format(mends[i]), 
19 21
                      '2017-{:02d}-01 00:30:00'.format(mstarts[i]),