AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Functions | |
template<class T > | |
AC_COMMON_API uint32 | TimeStringTo (std::string_view timeString) |
template<class T > | |
AC_COMMON_API std::string | ToTimeString (uint64 durationTime, TimeOutput timeOutput=TimeOutput::Seconds, TimeFormat timeFormat=TimeFormat::ShortText) |
template<class T > | |
AC_COMMON_API std::string | ToTimeString (std::string_view durationTime, TimeOutput timeOutput=TimeOutput::Seconds, TimeFormat timeFormat=TimeFormat::ShortText) |
AC_COMMON_API std::string | ToTimeString (Microseconds durationTime, TimeOutput timeOutput=TimeOutput::Seconds, TimeFormat timeFormat=TimeFormat::ShortText) |
AC_COMMON_API time_t | LocalTimeToUTCTime (time_t time) |
AC_COMMON_API time_t | GetLocalHourTimestamp (time_t time, uint8 hour, bool onlyAfterTime=true) |
AC_COMMON_API std::tm | TimeBreakdown (time_t t=0) |
AC_COMMON_API std::string | TimeToTimestampStr (Seconds time=0s, std::string_view fmt={}) |
AC_COMMON_API std::string | TimeToHumanReadable (Seconds time=0s, std::string_view fmt={}) |
AC_COMMON_API time_t | GetNextTimeWithDayAndHour (int8 dayOfWeek, int8 hour) |
AC_COMMON_API time_t | GetNextTimeWithMonthAndHour (int8 month, int8 hour) |
AC_COMMON_API uint32 | GetSeconds (Seconds time=0s) |
AC_COMMON_API uint32 | GetMinutes (Seconds time=0s) |
AC_COMMON_API uint32 | GetHours (Seconds time=0s) |
AC_COMMON_API uint32 | GetDayInWeek (Seconds time=0s) |
AC_COMMON_API uint32 | GetDayInMonth (Seconds time=0s) |
AC_COMMON_API uint32 | GetDayInYear (Seconds time=0s) |
AC_COMMON_API uint32 | GetMonth (Seconds time=0s) |
AC_COMMON_API uint32 | GetYear (Seconds time=0s) |
References GetEpochTime(), and TimeBreakdown().
References GetEpochTime(), and TimeBreakdown().
References GetEpochTime(), and TimeBreakdown().
Referenced by Weather::ReGenerate().
References GetEpochTime(), and TimeBreakdown().
time_t Acore::Time::GetLocalHourTimestamp | ( | time_t | time, |
uint8 | hour, | ||
bool | onlyAfterTime = true |
||
) |
References DAY, HOUR, and TimeBreakdown().
References GetEpochTime(), and TimeBreakdown().
Referenced by npc_dark_iron_attack_generator::AllowStart().
References GetEpochTime(), and TimeBreakdown().
Referenced by Player::_LoadBrewOfTheMonth().
References DAY, and TimeBreakdown().
Referenced by World::CalendarDeleteOldEvents(), World::InitCalendarOldEventsDeletionTime(), World::InitDailyQuestResetTime(), World::InitGuildResetTime(), World::InitMonthlyQuestResetTime(), World::InitRandomBGResetTime(), World::InitWeeklyQuestResetTime(), World::ResetDailyQuests(), World::ResetGuildCap(), World::ResetRandomBG(), and World::ResetWeeklyQuests().
References TimeBreakdown().
Referenced by World::ResetMonthlyQuests().
References GetEpochTime(), and TimeBreakdown().
References GetEpochTime(), and TimeBreakdown().
time_t Acore::Time::LocalTimeToUTCTime | ( | time_t | time | ) |
std::tm Acore::Time::TimeBreakdown | ( | time_t | t = 0 | ) |
References GetEpochTime(), and localtime_r().
Referenced by ByteBuffer::AppendPackedTime(), GetDayInMonth(), GetDayInWeek(), GetDayInYear(), GetHours(), GetLocalHourTimestamp(), GetMinutes(), GetMonth(), GetNextTimeWithDayAndHour(), GetNextTimeWithMonthAndHour(), GetSeconds(), GetYear(), ban_commandscript::HandleBanListCharacterCommand(), ban_commandscript::HandleBanListHelper(), ban_commandscript::HandleBanListIPCommand(), AchievementCriteriaData::Meets(), GameEventMgr::SetHolidayEventTime(), go_bells::go_bellsAI::UpdateAI(), and npc_elder_clearwater::npc_elder_clearwaterAI::UpdateAI().
AC_COMMON_API uint32 Acore::Time::TimeStringTo | ( | std::string_view | timeString | ) |
std::string Acore::Time::TimeToHumanReadable | ( | Seconds | time = 0s , |
std::string_view | fmt = {} |
||
) |
Referenced by guild_commandscript::HandleGuildInfoCommand(), and misc_commandscript::HandleMuteInfoHelper().
std::string Acore::Time::TimeToTimestampStr | ( | Seconds | time = 0s , |
std::string_view | fmt = {} |
||
) |
Referenced by Log::GetTimestampStr(), LogMessage::getTimeStr(), character_commandscript::HandleCharacterDeletedListHelper(), and event_commandscript::HandleEventInfoCommand().
std::string Acore::Time::ToTimeString | ( | Microseconds | durationTime, |
TimeOutput | timeOutput = TimeOutput::Seconds , |
||
TimeFormat | timeFormat = TimeFormat::ShortText |
||
) |
AC_COMMON_API std::string Acore::Time::ToTimeString | ( | std::string_view | durationTime, |
TimeOutput | timeOutput = TimeOutput::Seconds , |
||
TimeFormat | timeFormat = TimeFormat::ShortText |
||
) |
AC_COMMON_API std::string Acore::Time::ToTimeString | ( | uint64 | durationTime, |
TimeOutput | timeOutput = TimeOutput::Seconds , |
||
TimeFormat | timeFormat = TimeFormat::ShortText |
||
) |