mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +01:00
Minor fix in date-time class.
This commit is contained in:
parent
76759118cc
commit
1bfb421184
@ -123,9 +123,9 @@ void Datetime::Set(Uint16 year, Uint8 month, Uint8 day, Uint8 hour, Uint8 minute
|
|||||||
if (!Chrono::ValidDate(year, month, day))
|
if (!Chrono::ValidDate(year, month, day))
|
||||||
{
|
{
|
||||||
STHROWF("Invalid date: %04u%c%02u%c%02u%c%u"
|
STHROWF("Invalid date: %04u%c%02u%c%02u%c%u"
|
||||||
, m_Delimiter, m_Year
|
, m_DateDelim, m_Year
|
||||||
, m_Delimiter, m_Month
|
, m_DateDelim, m_Month
|
||||||
, m_Delimiter, m_Day
|
, m_DateDelim, m_Day
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// Is the specified hour within range?
|
// Is the specified hour within range?
|
||||||
|
@ -34,8 +34,8 @@ private:
|
|||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
SQChar m_Delimiter; // Date and time delimiter when generating strings.
|
SQChar m_Delimiter; // Date and time delimiter when generating strings.
|
||||||
SQChar m_DateDelim; // Time component delimiter when generating strings.
|
SQChar m_DateDelim; // Date component delimiter when generating strings.
|
||||||
SQChar m_TimeDelim; // Date component delimiter when generating strings.
|
SQChar m_TimeDelim; // Time component delimiter when generating strings.
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user