bc.datetime
Datetime
Mixin with the purpose of cover all the related with datetime
Source code in breathecode/tests/mixins/breathecode_mixin/datetime.py
from_timedelta(delta=timedelta(seconds=0))
to_datetime_integer(timezone, date)
Transform datetime to datetime integer.
Usage:
utc_now = timezone.now()
# date
date = datetime.datetime(2022, 3, 21, 2, 51, 55, 068)
# equals to 202203210751
self.bc.datetime.to_datetime_integer('america/new_york', date)