@@ -0,0 +1,1423 @@
+import mydatetime.mydatetime as mdt%0Aimport datetime%0A%0Aserial = 42758.4166666666642413474619388580322265625%0Amdt_fromymdh = mdt.mydatetime(2017,1,23,10)%0Amdt_fromserial = mdt.mydatetime.fromSerial(serial)%0Amdt_now = mdt.mydatetime.now()%0Adt_now = datetime.datetime.now()%0Adt_fromymdh = datetime.datetime(2017,1,23,10)%0A#print('serial date %60%7Bserial:.40f%7D%60 makes'.format(serial=serial))%0A#print('    mydatetime class %60%7Bmdt%7D%60.'.format(mdt=dt_fromserial))%0A#print('mydatetime class %60%7Bmdt%7D%60 makes'.format(mdt=dt_fromymdh))%0A#print('    serial %60%7Bserial:.40f%7D%60.'.format(serial=dt_fromymdh.toSerial()))%0A%0Amdt_timedelta = mdt_now-mdt_fromserial%0Adt_timedelta = dt_now-dt_fromymdh%0A%0Aprint('serial is %60%7Bs:.40f%7D%60'.format(s=serial))%0Aprint('created mydatetime class is %60%7Bdt%7D%60'.format(dt=mdt_fromserial))%0Aprint('created now() is %60%7Bdt%7D%60'.format(dt=mdt_now))%0Aprint('created now() is mydatetime class ? =%3E %7Bres%7D'.format(res=str(type(mdt_now)) == %22%3Cclass 'mydatetime.mydatetime.mydatetime'%3E%22))%0Aprint('from serial == from yyyy,mm,dd,hh ? =%3E %7Bresult%7D'.format(serial=serial,result=mdt_fromserial == mdt_fromymdh))%0Aprint('now - created mydatetime class is %7Bres%7D'.format(res=mdt_timedelta))%0Aprint('datetime version is %7Bres%7D'.format(res=dt_timedelta))%0Aprint('datetime + mdt_timedelta == mdt_now ? =%3E %7Bres%7D'.format(res=mdt_now==dt_fromymdh + mdt_timedelta))%0Aprint('mydatetime + dt_timedelta == dt_now ? =%3E %7Bres%7D'.format(res=dt_now==mdt_fromymdh + dt_timedelta))%0A%0A

make simple tester