# Titanic.py Copyright (c) Kari Laitinen # http://www.naturalprogramming.com # 2006-05-04 File created. # 2022-12-27 Converted to Python 3. # When this program is executed, Date.py and CurrentDate.py must # be in the same folder (directory) together with this file. from Date import Date from Date import DateDistance from CurrentDate import CurrentDate date_when_titanic_sank = Date( "04/15/1912" ) date_of_today = CurrentDate() time_from_sinking = \ date_of_today.get_distance_to( date_when_titanic_sank ) print( "\n Today it is %s." % date_of_today ) print( " On %s, the famous ship \"Titanic\" went to" \ "\n the bottom of Atlantic Ocean." % date_when_titanic_sank ) print( " That happened %d years, %d months, and %d days ago. \n" % \ ( time_from_sinking.years, time_from_sinking.months, time_from_sinking.days ) )