Changeset 27:a3e359b6eb37 in stamper


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

Use DATETIME_FORMAT instead of DATE_FORMAT in the stamp tool

Files:
2 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
  • stamper/__init__.py

    r2 r27  
    1 from stamper import DATE_FORMAT
     1from stamper import DATETIME_FORMAT
    22from stamper import Stamper
Note: See TracChangeset for help on using the changeset viewer.