Cleanup different places using unix_time()
This commit is contained in:
parent
eabcb3d39c
commit
705ec314a3
15 changed files with 60 additions and 82 deletions
|
|
@ -5,8 +5,8 @@ import json
|
|||
|
||||
from moto.compat import OrderedDict
|
||||
from moto.core import BaseBackend
|
||||
from moto.core.utils import unix_time
|
||||
from .comparisons import get_comparison_func
|
||||
from .utils import unix_time
|
||||
|
||||
|
||||
class DynamoJsonEncoder(json.JSONEncoder):
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
from __future__ import unicode_literals
|
||||
import calendar
|
||||
|
||||
|
||||
def unix_time(dt):
|
||||
return calendar.timegm(dt.timetuple())
|
||||
Loading…
Add table
Add a link
Reference in a new issue