Skip to content

Commit

Permalink
Add utcdatetime.date()
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M Furley committed Apr 1, 2018
1 parent 6101ec1 commit 20d9e45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utcdatetime/utcdatetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ def astimezone(self, tz):
"""
return self.__dt.astimezone(tz)

def date(self):
"""
https://docs.python.org/2/library/datedate.html#datedate.datedate.date
"""
return self.__dt.date()

def time(self):
"""
https://docs.python.org/2/library/datetime.html#datetime.datetime.time
Expand Down

0 comments on commit 20d9e45

Please sign in to comment.