gpg: move timeformat from util

This commit is contained in:
Roman Zeyde
2016-05-21 17:04:18 +03:00
parent 3192e570ed
commit ce61c8b2ae
2 changed files with 6 additions and 7 deletions

View File

@@ -137,11 +137,6 @@ def prefix_len(fmt, blob):
return struct.pack(fmt, len(blob)) + blob
def time_format(t):
"""Utility for consistent time formatting."""
return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(t))
def hexlify(blob):
"""Utility for consistent hexadecimal formatting."""
return binascii.hexlify(blob).decode('ascii').upper()