diff options
author | Vincent Driessen <me@nvie.com> | 2016-04-19 14:27:25 +0200 |
---|---|---|
committer | Vincent Driessen <me@nvie.com> | 2016-04-19 21:52:06 +0200 |
commit | a2c8c7f86e6a61307311ea6036dac4f89b64b500 (patch) | |
tree | 2c01a7478e1d66b6d632bdbc83030a3779661657 /git/test/test_util.py | |
parent | 504870e633eeb5fc1bd7c33b8dde0eb62a5b2d12 (diff) | |
download | gitpython-a2c8c7f86e6a61307311ea6036dac4f89b64b500.tar.gz |
Add support for getting "aware" datetime info
This adds 2 properties to commits. Their values are derived from the
existing data stored on them, but this makes them more conveniently
queryable:
- authored_datetime
- committed_datetime
These return "aware" datetimes, so they are effectively companions to
their raw timestamp equivalents, respectively `authored_date` and
`committed_date`.
These datetime instances are convenient structures since they show the
author-local commit date and their UTC offset.
Diffstat (limited to 'git/test/test_util.py')
-rw-r--r-- | git/test/test_util.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git/test/test_util.py b/git/test/test_util.py index c6ca6920..fabc7805 100644 --- a/git/test/test_util.py +++ b/git/test/test_util.py @@ -22,6 +22,7 @@ from git.objects.util import ( utctz_to_altz, verify_utctz, parse_date, + tzoffset, ) from git.cmd import dashify from git.compat import string_types |