module timelinelib.calendar.num.timetype.strips.numstrip

class timelinelib.calendar.num.timetype.strips.numstrip.NumStrip[source]

Bases: timelinelib.canvas.drawing.interface.Strip

__init__(size)[source]

Initialize self. See help(type(self)) for accurate signature.

label(time, major=False)[source]

Return the label for this strip at the given time when used as major or minor strip.

start(time)[source]

Return the start time for this strip and the given time.

For example, if the time is 2008-08-31 and the strip is month, the start would be 2008-08-01.

increment(time)[source]

Increment the given time so that it points to the start of the next strip.