/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 breezy/timestamp.py

  • Committer: Jelmer Vernooij
  • Date: 2017-10-27 09:03:47 UTC
  • mfrom: (6798.1.1 escaping)
  • Revision ID: jelmer@jelmer.uk-20171027090347-yxa0xg7rwftar05a
Merge lp:~jelmer/brz/escaping.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
 
126
126
# Format for patch dates: %Y-%m-%d %H:%M:%S [+-]%H%M
127
127
# Groups: 1 = %Y-%m-%d %H:%M:%S; 2 = [+-]%H; 3 = %M
128
 
RE_PATCHDATE = re.compile("(\d+-\d+-\d+\s+\d+:\d+:\d+)\s*([+-]\d\d)(\d\d)$")
129
 
RE_PATCHDATE_NOOFFSET = re.compile("\d+-\d+-\d+\s+\d+:\d+:\d+$")
 
128
RE_PATCHDATE = re.compile("(\\d+-\\d+-\\d+\\s+\\d+:\\d+:\\d+)\\s*([+-]\\d\\d)(\\d\\d)$")
 
129
RE_PATCHDATE_NOOFFSET = re.compile("\\d+-\\d+-\\d+\\s+\\d+:\\d+:\\d+$")
130
130
 
131
131
def parse_patch_date(date_str):
132
132
    """Parse a patch-style date into a POSIX timestamp and offset.