investfly.models
API Documentation
ModelUtils
est_zone
convertoToEst
localizeDateTime
parseDatetime
formatDatetime
parseZonedDatetime
formatZonedDatetime
built with
pdoc
investfly
.
models
.ModelUtils
class
ModelUtils
:
est_zone
=
zoneinfo.ZoneInfo(key='US/Eastern')
@staticmethod
def
convertoToEst
(
dt
:
datetime
.
datetime
) ->
datetime
.
datetime
:
@staticmethod
def
localizeDateTime
(
dt
:
datetime
.
datetime
) ->
datetime
.
datetime
:
@staticmethod
def
parseDatetime
(
date_str
:
str
) ->
datetime
.
datetime
:
@staticmethod
def
formatDatetime
(
dt
:
datetime
.
datetime
) ->
str
:
@staticmethod
def
parseZonedDatetime
(
date_str
:
str
) ->
datetime
.
datetime
:
@staticmethod
def
formatZonedDatetime
(
dt
:
datetime
.
datetime
) ->
str
: