swimlane.core.fields.datetime module¶
- class swimlane.core.fields.datetime.DatetimeField(*args, **kwargs)[source]¶
Bases:
Field
- cast_to_python(value)[source]¶
Called during set_swimlane, should accept a single raw value as provided from API
Defaults to no-op
- 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'¶