Changeset 27:a3e359b6eb37 in stamper for bin


Ignore:
Timestamp:
Aug 5, 2014, 6:01:38 PM (10 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Use DATETIME_FORMAT instead of DATE_FORMAT in the stamp tool

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/stamp

    r0 r27  
    33import sys
    44from datetime import datetime
    5 from stamper import DATE_FORMAT, Stamper
     5from stamper import DATETIME_FORMAT, Stamper
    66
    77
     
    2424    if len(sys.argv) == 1:
    2525        # stamp!
    26         s.stamp(datetime.today().strftime(DATE_FORMAT), None, None, None)
     26        s.stamp(datetime.today().strftime(DATETIME_FORMAT),
     27                None, None, None)
    2728
    2829    elif len(sys.argv) == 3:
     
    3233        if not current_start:
    3334            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),
    3536                sys.argv[1], sys.argv[2])
    3637
Note: See TracChangeset for help on using the changeset viewer.