Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias identifier Import alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLtE Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareLtE Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list decorator_list Call NameLoad Str
N/A N/A 
@author: Luke Campbell <LCampbell@ASAScience.com>
@file pyon/util/test/test_ion_time.py
@date Fri Jul 20 10:26:55 EDT 2012
@description Utilities for dealing with NTP time stamps
 pyon.util.unit_test PyonTestCase pyon.util.ion_time IonTime nose.plugins.attrib attr N/A time N/A numpy np N/A datetime IonTimeUnitTest N/A PyonTestCase N/A test_time_ntp_fidelity N/A N/A self N/A N/A N/A it1 N/A IonTime N/A ntp_ts N/A N/A it1 to_ntp64 N/A it2 N/A N/A IonTime from_ntp64 ntp_ts N/A N/A N/A self assertEquals N/A it1 seconds N/A it2 seconds N/A N/A N/A self assertTrue N/A N/A N/A np abs N/A N/A it1 useconds N/A it2 useconds 1 N/A test_time_string_fidelity N/A N/A self N/A N/A N/A it1 N/A IonTime N/A ntp_str N/A N/A it1 to_string N/A it2 N/A N/A IonTime from_string ntp_str N/A N/A N/A self assertEquals N/A it1 seconds N/A it2 seconds N/A N/A N/A self assertTrue N/A N/A N/A np abs N/A N/A it1 useconds N/A it2 useconds 1 N/A test_unix_time_fidelity N/A N/A self N/A N/A N/A ts N/A N/A time time N/A it1 N/A IonTime ts N/A ts_2 N/A N/A it1 to_unix N/A N/A N/A self assertTrue N/A N/A N/A np abs N/A ts ts_2 0.001 N/A test_ntp_compatability N/A N/A self N/A N/A N/A unix_day N/A IonTime N/A N/A datetime datetime 1970 1 1 N/A N/A N/A self assertEquals N/A unix_day era 0 N/A N/A N/A self assertEquals N/A unix_day seconds 2208988800 N/A utc_day N/A IonTime N/A N/A datetime datetime 1972 1 1 N/A N/A N/A self assertEquals N/A utc_day era 0 N/A N/A N/A self assertEquals N/A utc_day seconds 2272060800 N/A millen_day N/A IonTime N/A N/A datetime datetime 2000 1 1 N/A N/A N/A self assertEquals N/A millen_day era 0 N/A N/A N/A self assertEquals N/A millen_day seconds 3155673600 N/A ntp_era1 N/A IonTime N/A N/A datetime datetime 2036 2 8 N/A N/A N/A self assertEquals N/A ntp_era1 era 1 N/A N/A N/A self assertEquals N/A ntp_era1 seconds 63104 N/A N/A N/A self assertEquals N/A N/A ntp_era1 to_unix 2086041600.0 N/A N/A N/A attr UNIT