Package Gnumed :: Package timelinelib :: Package time :: Module pytime
[frames] | no frames]

Module pytime

source code

Classes
  PyTimeType
  StripCentury
  StripDecade
  StripYear
  StripMonth
  StripDay
  StripWeek
  StripWeekday
  StripHour
Functions
 
go_to_today_fn(main_frame, current_period, navigation_fn) source code
 
go_to_date_fn(main_frame, current_period, navigation_fn) source code
 
backward_fn(main_frame, current_period, navigation_fn) source code
 
forward_fn(main_frame, current_period, navigation_fn) source code
 
forward_one_week_fn(main_frame, current_period, navigation_fn) source code
 
backward_one_week_fn(main_frame, current_period, navigation_fn) source code
 
navigate_month_step(current_period, navigation_fn, direction)
Currently does notice leap years.
source code
 
forward_one_month_fn(main_frame, current_period, navigation_fn) source code
 
backward_one_month_fn(main_frame, current_period, navigation_fn) source code
 
forward_one_year_fn(main_frame, current_period, navigation_fn) source code
 
backward_one_year_fn(main_frame, current_period, navigation_fn) source code
 
fit_millennium_fn(main_frame, current_period, navigation_fn) source code
 
get_min_year() source code
 
get_millenium_max_year() source code
 
get_century_max_year() source code
 
fit_century_fn(main_frame, current_period, navigation_fn) source code
 
fit_decade_fn(main_frame, current_period, navigation_fn) source code
 
fit_year_fn(main_frame, current_period, navigation_fn) source code
 
fit_month_fn(main_frame, current_period, navigation_fn) source code
 
fit_day_fn(main_frame, current_period, navigation_fn) source code
 
fit_week_fn(main_frame, current_period, navigation_fn) source code
 
microseconds_to_delta(microsecs)
Return a timedelta representing the given number of microseconds.
source code
 
delta_to_microseconds(delta)
Return the number of microseconds that the timedelta represents.
source code
 
move_period_num_days(period, num) source code
 
move_period_num_weeks(period, num) source code
 
move_period_num_months(period, num) source code
 
move_period_num_years(period, num) source code
Variables
  US_PER_SEC = 1000000
  US_PER_DAY = 24* 60* 60* US_PER_SEC

Imports: datetime, time, timedelta, calendar, re, abbreviated_name_of_month, abbreviated_name_of_weekday, TimeOutOfRangeLeftError, TimeOutOfRangeRightError, TimePeriod, time_period_center, Strip, get_default_font, TimeType