@Override
    public boolean equals(Object obj)
    {
        if (obj == null)
        {
            return false;
        } else if (!(obj instanceof Time)) return false;
        else {
            Time rhs = (Time) obj;
            return ((this.hours == rhs.hours) && (this.minutes == rhs.minutes) && (this.seconds == rhs.seconds));
        }
    }