fixed DateTime::now()

experiment/meta_header
Martchus 7 years ago
parent d9cb646dd9
commit 9f4d1daacf
  1. 2
      chrono/datetime.cpp
  2. 2
      chrono/datetime.h

@ -178,7 +178,7 @@ const char *DateTime::printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation)
*/
DateTime DateTime::now()
{
return DateTime(time(nullptr));
return DateTime::fromTimeStamp(time(nullptr));
}
/*!

@ -126,7 +126,7 @@ constexpr inline DateTime::DateTime() :
{}
/*!
* Constructs a DateTime to a specified number of \a ticks.
* Constructs a DateTime with the specified number of \a ticks.
*/
constexpr inline DateTime::DateTime(uint64 ticks) :
m_ticks(ticks)

Loading…
Cancel
Save