Mercurial > code
diff modules/date/date.h @ 548:f48bb09bccc7
Misc: huge cleanup, switch to spaces
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 15 Jun 2016 13:13:26 +0200 |
parents | 7ee8da32da98 |
children |
line wrap: on
line diff
--- a/modules/date/date.h Wed Jun 15 11:59:17 2016 +0200 +++ b/modules/date/date.h Wed Jun 15 13:13:26 2016 +0200 @@ -16,12 +16,12 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifndef _DATE_H_ -#define _DATE_H_ +#ifndef DATE_HPP +#define DATE_HPP /** - * @file date.h - * @brief Basic date management. + * \file date.h + * \brief Basic date management. */ #include <cstdint> @@ -29,62 +29,62 @@ #include <string> /** - * @class Date - * @brief Basic date class and format. + * \class Date + * \brief Basic date class and format. */ class Date { private: - time_t m_timestamp; + time_t m_timestamp; public: - /** - * Default constructor to the current date. - */ - Date(); + /** + * Default constructor to the current date. + */ + Date(); - /** - * Date with specific timestamp. - * - * @param timestamp the timestamp - */ - Date(time_t timestamp); + /** + * Date with specific timestamp. + * + * \param timestamp the timestamp + */ + Date(time_t timestamp); - /** - * Get the timestamp. - * - * @return the timestamp - */ - inline time_t timestamp() const noexcept - { - return m_timestamp; - } + /** + * Get the timestamp. + * + * \return the timestamp + */ + inline time_t timestamp() const noexcept + { + return m_timestamp; + } - /** - * Format the current that in the specified format, - * see strftime(3) for patterns. - * - * @param format the format - * @return the date formated - */ - std::string format(const std::string &format); + /** + * Format the current that in the specified format, + * see strftime(3) for patterns. + * + * \param format the format + * \return the date formated + */ + std::string format(const std::string &format); }; /** * Check is two dates are identical. * - * @param d1 the first date - * @param d2 the second date - * @return true if same + * \param d1 the first date + * \param d2 the second date + * \return true if same */ bool operator==(const Date &d1, const Date &d2); /** * Check is a date is less or equal the second date. * - * @param d1 the first date - * @param d2 the second date - * @return true if d1 <= d2 + * \param d1 the first date + * \param d2 the second date + * \return true if d1 <= d2 */ bool operator<=(const Date &d1, const Date &d2); -#endif // !_DATE_H_ +#endif // !DATE_HPP