Permalink
Browse files

Merge pull request #89 from averyonghub/master

Support for 'hh' and 'h' strings
  • Loading branch information...
2 parents 30ca228 + 312c05f commit b7eb832c08a1e376ffbacb70e95366b03a844379 @crsmithdev committed Feb 22, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 arrow/parser.py
View
@@ -38,6 +38,8 @@ class DateTimeParser(object):
'D': _ONE_OR_TWO_DIGIT_RE,
'HH': _TWO_DIGIT_RE,
'H': _ONE_OR_TWO_DIGIT_RE,
+ 'hh': _TWO_DIGIT_RE,
+ 'h': _ONE_OR_TWO_DIGIT_RE,
'mm': _TWO_DIGIT_RE,
'm': _ONE_OR_TWO_DIGIT_RE,
'ss': _TWO_DIGIT_RE,

0 comments on commit b7eb832

Please sign in to comment.