Kenny's answer already shows you how to do this.
Note that I would prefer to implement binary operators that treat their operands the same way (they don't change them) as free functions:
inline bool operator>(const AToTime& khs, const AToTime& rhs)
{
return lhs.m_time > rhs.m_time;
}
, , , . std operator<, , operator<:
inline bool operator<(const AToTime& khs, const AToTime& rhs)
{return lhs.m_time < rhs.m_time;}
inline bool operator>(const AToTime& khs, const AToTime& rhs)
{return rhs < lhs;}
inline bool operator<=(const AToTime& khs, const AToTime& rhs)
{return !(lhs > rhs);}
inline bool operator>=(const AToTime& khs, const AToTime& rhs)
{return !(lhs < rhs);}
inline bool operator==(const AToTime& khs, const AToTime& rhs)
{return lhs.m_time == rhs.m_time;}
inline bool operator!=(const AToTime& khs, const AToTime& rhs)
{return !(lhs.m_time == rhs.m_time);}