moto/moto/dynamodb2/utils.py
2013-12-10 11:51:54 +02:00

6 lines
80 B
Python

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