ibllib.time

Functions

convert_pgts

Convert PointGray cameras timestamps to seconds.

date2isostr

format_date_range

isostr2date

Convert strings representing dates into datetime.datetime objects aimed ad Django REST API ISO 8601: ‘2018-05-22T14:35:22.99585’ or ‘2018-05-22T14:35:22’

uncycle_pgts

Unwrap the converted seconds of a PointGray camera timestamp series.

isostr2date(isostr)[source]

Convert strings representing dates into datetime.datetime objects aimed ad Django REST API ISO 8601: ‘2018-05-22T14:35:22.99585’ or ‘2018-05-22T14:35:22’

Parameters

isostr – a string, list of strings or panda Series / numpy arrays containing strings

Returns

a scalar, list of

date2isostr(adate)[source]
format_date_range(date_range)[source]
convert_pgts(time)[source]

Convert PointGray cameras timestamps to seconds. Use convert then uncycle

uncycle_pgts(time)[source]

Unwrap the converted seconds of a PointGray camera timestamp series.