Greetings,

I am trying to modify the definition of this "Time" object so that time is represented internally as the number of seconds before or after noon. I want time before noon to be a negative number, time after noon will be positive and noon will be 0.

Not for sure what to look at first. Ok the int hour is time 0 to 23, minute and sec o to 59. How do I define noon as 0, then go negative? The time as of now is initialized to 12am as 0. So how do I initialize the time so that 12pm is 0? Then to go in the neg direction? 12 am to 11:59am is negative and 12:01pm to 11:59 pm is positive.

Thank you

Terri

#ifndef TIME6_H

#define TIME6_H

class Time {

public:

Time( int = 0, int = 0, int = 0 );

// set functions

Time &setTime( int, int, int );

Time &setHour( int );

Time &setMinute( int );

Time &setSecond( int );

int getHour() const;

int getMinute() const;

int getSecond() const;

void printMilitary() const;

void printStandard() const;

private:

int hour;

int minute;

int second;

};

#endif