module timelinelib.calendar.gregorian.timetype.strips.stripcentury

class timelinelib.calendar.gregorian.timetype.strips.stripcentury.StripCentury[source]

Bases: timelinelib.canvas.drawing.interface.Strip

Year Name | Year integer | Decade name ———-+————–+———— .. | .. | 200 BC | -199 | 200s BC (100 years) ———-+————–+———— 199 BC | -198 | … | … | 100s BC (100 years) 100 BC | -99 | ———-+————–+———— 99 BC | -98 | … | … | 0s BC (only 99 years) 1 BC | 0 | ———-+————–+———— 1 | 1 | … | … | 0s (only 99 years) 99 | 99 | ———-+————–+———— 100 | 100 | .. | .. | 100s (100 years) 199 | 199 | ———-+————–+———— 200 | 200 | 200s (100 years) .. | .. |

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.