swimlane.core.fields.datetime module

class swimlane.core.fields.datetime.DatetimeField(*args, **kwargs)[source]

Bases: swimlane.core.fields.base.field.Field

cast_to_python(value)[source]
cast_to_swimlane(value)[source]

Return datetimes formatted as expected by API and timespans as millisecond epochs

datetime_format = '%Y-%m-%dT%H:%M:%S.%fZ'
field_type = 'Core.Models.Fields.Date.DateField, Core'
classmethod format_datetime(target_datetime)[source]

Format datetime as expected by Swimlane API

get_python()[source]

Coerce to best date type representation for the field subtype