/* This file provides an implementation for library Times.

   Names defined:
     DaysToSeconds, a function to compute the number of seconds,
                       given a number of days
     DaysToHours, a function to compute the number of hours,
                       given a number of days
     HoursToMinutes, a function to compute the number of minutes,
                       given a number of hours
     MinutesToSeconds, a function to compute the number of seconds,
                       given a number of minutes
     . . .
---------------------------------------------------------------------*/

#include "Times.h"

//-------------------------------------------

double DaysToSeconds(double Days)
{
   double
      Hours = DaysToHours(Days);

   double
      Minutes = HoursToMinutes(Hours);

   double
      Seconds = MinutesToSeconds(Minutes);

   return Seconds;
}

//---------------------------------------------

double DaysToHours(double Days)
{
   return Days * 24.0;
}

//---------------------------------------------

double HoursToMinutes(double Hours)
{
   return Hours * 60.0;
}


//----------------------------------------------

double MinutesToSeconds(double Minutes)
{
   return Minutes * 60.0;
}

// ... definitions of additional time-related functions are omitted.

