Source code for arpoc.utils

"""
ARPOC utils

Time functions that are used in ARPOC.
Can be swapped for unittests
"""
import datetime

[docs]def now_object(): """ Return a datetime object with current timestamp""" return datetime.datetime.now()
[docs]def now(): """ Return the seconds since begin of the EPOCH """ return int(datetime.datetime.now().timestamp())