Gnumed.timelinelib.canvas.data.timeperiod

Package Gnumed :: Package timelinelib :: Package canvas :: Package data :: Module timeperiod |
[frames] | no frames]

# Module timeperiod

source code

Classes
| TimePeriod Represents a period in time using a start and end time.
| TimeOutOfRangeLeftError
| TimeOutOfRangeRightError

Functions
time_period_center(time, length) TimePeriod factory method. | source code

Imports: GregorianDateTime

Function Details

### time_period_center(time, length) | source code
TimePeriod factory method. Return a time period with the given length (represented as a timedelta) centered around `time`.