module timelinelib.calendar.gregorian.timetype.timetype

class timelinelib.calendar.gregorian.timetype.timetype.GregorianTimeType[source]

Bases: timelinelib.calendar.timetype.TimeType

DURATION_TYPE_HOURS = 'Hours'
DURATION_TYPE_WORKDAYS = 'Workdays'
DURATION_TYPE_DAYS = 'Days'
DURATION_TYPE_MINUTES = 'Minutes'
DURATION_TYPE_SECONDS = 'Seconds'
__eq__(other)[source]

Return self==value.

__ne__(other)[source]

Return self!=value.

time_string(time)[source]
parse_time(time_string)[source]
get_navigation_functions()[source]
format_period(time_period)[source]

Returns a unicode string describing the time period.

format_delta(delta)[source]
get_min_time()[source]
get_min_wx_time()[source]
get_max_time()[source]
get_max_wx_time()[source]
choose_strip(metrics, appearance)[source]

Return a tuple (major_strip, minor_strip) for current time period and window size.

get_default_time_period()[source]
supports_saved_now()[source]
set_saved_now(time)[source]
now()[source]
get_min_zoom_delta()[source]
get_name()[source]
get_duplicate_functions()[source]
is_special_day(time)[source]
is_weekend_day(time)[source]
create_time_picker(parent, *args, **kwargs)[source]
create_period_picker(parent, *args, **kwargs)[source]
get_duration_types()[source]
get_duration_divisor(duration_type, workday_length)[source]
timelinelib.calendar.gregorian.timetype.timetype.go_to_today_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.go_to_date_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.backward_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.forward_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.forward_one_week_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.backward_one_week_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.navigate_month_step(current_period, navigation_fn, direction)[source]

Currently does notice leap years.

timelinelib.calendar.gregorian.timetype.timetype.forward_one_month_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.backward_one_month_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.forward_one_year_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.backward_one_year_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.fit_millennium_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.get_min_year_containing_jan_1()[source]
timelinelib.calendar.gregorian.timetype.timetype.get_millenium_max_year()[source]
timelinelib.calendar.gregorian.timetype.timetype.fit_week_fn(main_frame, current_period, navigation_fn)[source]
timelinelib.calendar.gregorian.timetype.timetype.create_strip_fitter(strip_cls)[source]
timelinelib.calendar.gregorian.timetype.timetype.move_period_num_days(period, num)[source]
timelinelib.calendar.gregorian.timetype.timetype.move_period_num_weeks(period, num)[source]
timelinelib.calendar.gregorian.timetype.timetype.move_period_num_months(period, num)[source]
timelinelib.calendar.gregorian.timetype.timetype.move_period_num_years(period, num)[source]