imiptools/dates.py | raw changeset files shortlog |
1.1 --- a/imiptools/dates.py Sun Feb 01 21:05:55 2015 +0100 1.2 +++ b/imiptools/dates.py Mon Feb 02 00:12:53 2015 +0100 1.3 @@ -110,4 +110,7 @@ 1.4 end == get_end_of_day(dt) 1.5 ) 1.6 1.7 +def get_timestamp(): 1.8 + return format_datetime(to_timezone(datetime.utcnow(), "UTC")) 1.9 + 1.10 # vim: tabstop=4 expandtab shiftwidth=4