Changeset 27:a3e359b6eb37 in stamper for bin
Legend:
- Unmodified
- Added
- Removed
-
bin/stamp
r0 r27 3 3 import sys 4 4 from datetime import datetime 5 from stamper import DATE _FORMAT, Stamper5 from stamper import DATETIME_FORMAT, Stamper 6 6 7 7 … … 24 24 if len(sys.argv) == 1: 25 25 # stamp! 26 s.stamp(datetime.today().strftime(DATE_FORMAT), None, None, None) 26 s.stamp(datetime.today().strftime(DATETIME_FORMAT), 27 None, None, None) 27 28 28 29 elif len(sys.argv) == 3: … … 32 33 if not current_start: 33 34 current_start = last_stamp['start'] 34 s.stamp(current_start, datetime.today().strftime(DATE _FORMAT),35 s.stamp(current_start, datetime.today().strftime(DATETIME_FORMAT), 35 36 sys.argv[1], sys.argv[2]) 36 37
Note:
See TracChangeset
for help on using the changeset viewer.