Sha256: 831f7675c632a7f04983052f623b20ea3596dc62fd44e470af254f60c67cdb25
Contents?: true
Size: 479 Bytes
Versions: 156
Compression:
Stored size: 479 Bytes
Contents
#if !defined(CLOCK_H) #define CLOCK_H #include <string> namespace date_independent { class clock { public: static clock at(int hour, int minute = 0); clock& plus(int minutes); clock& minus(int minutes); operator std::string() const; bool operator==(const clock& rhs) const; private: clock(int hour, int minute); int hour_; int minute_; }; inline bool operator!=(const clock& lhs, const clock& rhs) { return !(lhs == rhs); } } #endif
Version data entries
156 entries across 156 versions & 1 rubygems