Gnumed.timelinelib.calendar.pharaonic.timetype

Package Gnumed :: Package timelinelib :: Package calendar :: Package pharaonic :: Module timetype |
[frames] | no frames]

# Module timetype

source code

Classes
| PharaonicTimeType
| StripCentury Year Name | Year integer | Decade name ----------+--------------+------------ ..
| StripDecade Year Name | Year integer | Decade name ----------+--------------+------------ ..
| StripYear
| StripMonth
| StripDay
| StripWeek
| StripWeekday
| StripHour
| StripMinute
| DurationType
| DurationFormatter

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) | 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_containing_jan_1() | source code
get_millenium_max_year() | source code
fit_week_fn(main_frame, current_period, navigation_fn) | source code
create_strip_fitter(strip_cls) | source code
format_year(year) | 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
has_nonzero_time(time_period) | source code

Variables
| BC = `_("BC")`
| YEARS = `DurationType(_('years'), _('year'), lambda ds: ds [0]/`...``
| MONTHS = `DurationType(_('months'), _('month'), lambda ds: ds [`...``
| WEEKS = `DurationType(_('weeks'), _('week'), lambda ds: ds [0]/`...``
| DAYS = `DurationType(_('days'), _('day'), lambda ds: ds [0], la`...``
| HOURS = `DurationType(_('hours'), _('hour'), lambda ds: ds [0]*`...``
| MINUTES = `DurationType(_('minutes'), _('minute'), lambda ds: d`...``
| SECONDS = `DurationType(_('seconds'), _('second'), lambda ds: d`...``

Imports: datetime, re, GregorianTimeType, PharaonicDateTime, abbreviated_name_of_month, PharaonicDelta, PharaonicTime, SECONDS_IN_DAY, abbreviated_name_of_weekday, TimeType, TimeOutOfRangeLeftError, TimeOutOfRangeRightError, TimePeriod, time_period_center, Strip, gregorian_ymd_to_julian_day, julian_day_to_pharaonic_ymd

Variables Details

  ### YEARS Value:
      DurationType(_('years'), _('year'), lambda ds: ds [0]// 365, lambda ds
      :(ds [0] % 365, ds [1]))

  ### MONTHS Value:
      DurationType(_('months'), _('month'), lambda ds: ds [0]// 30, lambda d
      s:(ds [0] % 30, ds [1]))

  ### WEEKS Value:
      DurationType(_('weeks'), _('week'), lambda ds: ds [0]// 7, lambda ds:(
      ds [0] % 7, ds [1]))

  ### DAYS Value:
      DurationType(_('days'), _('day'), lambda ds: ds [0], lambda ds:(0, ds
      [1]))

  ### HOURS Value:
      DurationType(_('hours'), _('hour'), lambda ds: ds [0]* 24+ ds [1]// 36
      00, lambda ds:(0, ds [1] % 3600))

  ### MINUTES Value:
      DurationType(_('minutes'), _('minute'), lambda ds: ds [0]* 1440+ ds [1
      ]// 60, lambda ds:(0, ds [1] % 60))

  ### SECONDS Value:
      DurationType(_('seconds'), _('second'), lambda ds: ds [0]* 86400+ ds [
      1], lambda ds:(0, 0))