Browse Source

Improve documentation

experiment/improve_get_date_part
Martchus 5 years ago
parent
commit
d7185fc1bc
  1. 2
      chrono/datetime.cpp
  2. 3
      chrono/datetime.h

2
chrono/datetime.cpp

@ -292,7 +292,7 @@ const char *DateTime::printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation)
#if defined(PLATFORM_UNIX) && !defined(PLATFORM_MAC)
/*!
* \brief Returns a DateTime object that is set to the current date and time on this computer, expressed as the GMT time.
* \remarks
* \remarks Only available under UNIX-like systems supporting clock_gettime().
*/
DateTime DateTime::exactGmtNow()
{

3
chrono/datetime.h

@ -39,6 +39,7 @@ enum class DayOfWeek {
/*!
* \brief Specifies the date part.
* \remarks Intended for internal use only.
* \sa DateTime::getDatePart()
*/
enum class DatePart {
@ -316,7 +317,7 @@ constexpr inline TimeSpan DateTime::timeOfDay() const
}
/*!
* \brief Returns an indication whether the year of the dae represented by this instance is a leap year.
* \brief Returns an indication whether the year represented by this instance is a leap year.
*/
inline bool DateTime::isLeapYear() const
{

Loading…
Cancel
Save