moul :: time :: dni :: DniTime :: Class DniTime
[hide private]
[frames] | no frames]

Class DniTime



object --+
         |
        DniTime

D'ni time handler

The D'ni were using a complex calendar based on a pentovigesimal (25)
numbering system.

The DniTime class assumes the following rules:

  - Hahrtee Farah 1 started on 21st of April 7656 B.C.
  - Hahrtee Fahrah 15 started 1719 A.C.
  - A new hahr starts on 21st of April.
  - The reference time for the calculation is Mountain Standard Time (MST)
    without (!) DST. The UTC offset is always UTC-7.
  - To compensate leap years a new hahr starts on midnight (0:00am) in every
    forth year (year % 4 == 0).
  - To simplify the code special cases like year % 100 and year % 400 are
    NOT taken into account. I'm assuming a year has 365,25 days (which is
    wrong). A year according to the Gregorian Calendar has 365,2425 days.

Overview
--------

  fahrah     millenium  625 years
  hahr       year       1 year
  vailee     month      10 per year
  yahr       day        29 per vailee, about 30h 14min
  gahrtahvo  section    about 6h, 3min
  tahvo      quarter    about 14,5min
  gorahn     minute     36 seconds
  prorahn    second     about 1.3929 seconds



Instance Methods [hide private]

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__


Class Variables [hide private]
  _fahrah = None
helper for pickle
  _hahr = None
helper for pickle
  _vailee = None
helper for pickle
  _yahr = None
helper for pickle
  _gahrtahvo = None
helper for pickle
  _tahvo = None
helper for pickle
  _gorahn = None
helper for pickle
  _prorahn = None
helper for pickle

Properties [hide private]

Inherited from object: __class__


Class Variable Details [hide private]

_fahrah

helper for pickle
Value:
None                                                                  
      

_hahr

helper for pickle
Value:
None                                                                  
      

_vailee

helper for pickle
Value:
None                                                                  
      

_yahr

helper for pickle
Value:
None                                                                  
      

_gahrtahvo

helper for pickle
Value:
None                                                                  
      

_tahvo

helper for pickle
Value:
None                                                                  
      

_gorahn

helper for pickle
Value:
None                                                                  
      

_prorahn

helper for pickle
Value:
None