/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/timestamp.py

  • Committer: Aaron Bentley
  • Date: 2007-03-09 21:20:19 UTC
  • mto: (2323.6.9 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2330.
  • Revision ID: abentley@panoramicfeedback.com-20070309212019-1tczqufaqn490bxg
Misc changes from review

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
    """
130
130
    assert offset % 36 == 0
131
131
    tm = time.gmtime(secs+offset)
132
 
    if offset < 0:
133
 
        sign = '-'
134
 
    else:
135
 
        sign = '+'
136
132
    time_str = time.strftime('%Y-%m-%d %H:%M:%S', tm)
137
 
    return '%s %s%04d' % (time_str, sign, abs(offset/36))
 
133
    return '%s %+05d' % (time_str, abs(offset/36))
138
134
 
139
135
 
140
136
def parse_patch_date(date_str):