taskbridgeapp.helpers.DateUtil
- class taskbridgeapp.helpers.DateUtil
Bases:
objectUtility class for converting between several date and date/time formats.
Methods
Convert one date/datetime format to another.
Attributes
APPLE_DATETIMEAPPLE_DATETIME_ALTCALDAV_DATECALDAV_DATETIMESQLITE_DATETIME- __init__()
- static convert(source_format, obj, required_format='')
Convert one date/datetime format to another. :rtype:
str|datetime|bool- Parameters:
source_format (
str) – the format of the source date/datetime. Can be left empty ifobjis adatetime
object. :type obj:
str|datetime:param obj: what to convert from. Can either be a string, or adatetimeobject. :type required_format:str:param required_format: the format required if the required output is of typestr.