moto/moto/dynamodb/utils.py
2013-10-03 20:34:13 -04:00

6 lines
80 B
Python

import calendar
def unix_time(dt):
return calendar.timegm(dt.timetuple())