AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Timer.h File Reference
#include "Common.h"
#include "Duration.h"

Go to the source code of this file.

Classes

struct  IntervalTimer
 
struct  TimeTracker
 
struct  TimeTrackerSmall
 
struct  PeriodicTimer
 

Namespaces

namespace  Acore
 
namespace  Acore::Time
 

Enumerations

enum class  TimeFormat : uint8 {
  FullText ,
  ShortText ,
  Numeric
}
 
enum class  TimeOutput : uint8 {
  Days ,
  Hours ,
  Minutes ,
  Seconds ,
  Milliseconds ,
  Microseconds
}
 

Functions

template<class T >
AC_COMMON_API uint32 Acore::Time::TimeStringTo (std::string_view timeString)
 
template<class T >
AC_COMMON_API std::string Acore::Time::ToTimeString (uint64 durationTime, TimeOutput timeOutput=TimeOutput::Seconds, TimeFormat timeFormat=TimeFormat::ShortText)
 
template<class T >
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 (Microseconds durationTime, TimeOutput timeOutput=TimeOutput::Seconds, TimeFormat timeFormat=TimeFormat::ShortText)
 
AC_COMMON_API time_t Acore::Time::LocalTimeToUTCTime (time_t time)
 
AC_COMMON_API time_t Acore::Time::GetLocalHourTimestamp (time_t time, uint8 hour, bool onlyAfterTime=true)
 
AC_COMMON_API std::tm Acore::Time::TimeBreakdown (time_t t=0)
 
AC_COMMON_API std::string Acore::Time::TimeToTimestampStr (Seconds time=0s, std::string_view fmt={})
 
AC_COMMON_API std::string Acore::Time::TimeToHumanReadable (Seconds time=0s, std::string_view fmt={})
 
AC_COMMON_API time_t Acore::Time::GetNextTimeWithDayAndHour (int8 dayOfWeek, int8 hour)
 
AC_COMMON_API time_t Acore::Time::GetNextTimeWithMonthAndHour (int8 month, int8 hour)
 
AC_COMMON_API uint32 Acore::Time::GetSeconds (Seconds time=0s)
 
AC_COMMON_API uint32 Acore::Time::GetMinutes (Seconds time=0s)
 
AC_COMMON_API uint32 Acore::Time::GetHours (Seconds time=0s)
 
AC_COMMON_API uint32 Acore::Time::GetDayInWeek (Seconds time=0s)
 
AC_COMMON_API uint32 Acore::Time::GetDayInMonth (Seconds time=0s)
 
AC_COMMON_API uint32 Acore::Time::GetDayInYear (Seconds time=0s)
 
AC_COMMON_API uint32 Acore::Time::GetMonth (Seconds time=0s)
 
AC_COMMON_API uint32 Acore::Time::GetYear (Seconds time=0s)
 
AC_COMMON_API struct tm * localtime_r (time_t const *time, struct tm *result)
 
TimePoint GetApplicationStartTime ()
 
Milliseconds GetTimeMS ()
 
Milliseconds GetMSTimeDiff (Milliseconds oldMSTime, Milliseconds newMSTime)
 
uint32 getMSTime ()
 
uint32 getMSTimeDiff (uint32 oldMSTime, uint32 newMSTime)
 
uint32 getMSTimeDiff (uint32 oldMSTime, TimePoint newTime)
 
uint32 GetMSTimeDiffToNow (uint32 oldMSTime)
 
Milliseconds GetMSTimeDiffToNow (Milliseconds oldMSTime)
 
Seconds GetEpochTime ()
 

Enumeration Type Documentation

◆ TimeFormat

enum class TimeFormat : uint8
strong
Enumerator
FullText 
ShortText 
Numeric 
25{
26 FullText, // 1 Days 2 Hours 3 Minutes 4 Seconds 5 Milliseconds
27 ShortText, // 1d 2h 3m 4s 5ms
28 Numeric // 1:2:3:4:5
29};

◆ TimeOutput

enum class TimeOutput : uint8
strong
Enumerator
Days 
Hours 
Minutes 
Seconds 
Milliseconds 
Microseconds 
32{
33 Days, // 1d
34 Hours, // 1d 2h
35 Minutes, // 1d 2h 3m
36 Seconds, // 1d 2h 3m 4s
37 Milliseconds, // 1d 2h 3m 4s 5ms
38 Microseconds // 1d 2h 3m 4s 5ms 6us
39};
std::chrono::microseconds Microseconds
Microseconds shorthand typedef.
Definition: Duration.h:24

Function Documentation

◆ GetApplicationStartTime()

TimePoint GetApplicationStartTime ( )
inline
76{
77 using namespace std::chrono;
78
79 static const TimePoint ApplicationStartTime = steady_clock::now();
80
81 return ApplicationStartTime;
82}
std::chrono::steady_clock::time_point TimePoint
time_point shorthand typedefs
Definition: Duration.h:69

Referenced by getMSTime(), getMSTimeDiff(), and GetTimeMS().

◆ GetEpochTime()

◆ getMSTime()

uint32 getMSTime ( )
inline
104{
105 using namespace std::chrono;
106
107 return uint32(duration_cast<milliseconds>(steady_clock::now() - GetApplicationStartTime()).count());
108}
std::uint32_t uint32
Definition: Define.h:107
TimePoint GetApplicationStartTime()
Definition: Timer.h:75

References GetApplicationStartTime().

Referenced by MySQLConnection::_Query(), DisableMgr::CheckQuestDisables(), CharacterDatabaseCleaner::CleanDatabase(), MySQLConnection::Execute(), GetMSTimeDiffToNow(), Player::GetSpellCooldownDelay(), mmaps_commandscript::HandleMmapTestArea(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveRootAck(), WorldSession::HandleMoveUnRootAck(), FreezeDetector::Handler(), ArenaSpectator::HandleResetCommand(), Player::HasSpellCooldown(), Player::HasSpellItemCooldown(), PacketLog::Initialize(), PlayerDump::InitializeTables(), OutdoorPvPMgr::InitOutdoorPvP(), WaypointMgr::Load(), ObjectMgr::LoadAccessRequirements(), AchievementGlobalMgr::LoadAchievementCriteriaData(), AchievementGlobalMgr::LoadAchievementCriteriaList(), AchievementGlobalMgr::LoadAchievementReferenceList(), ObjectMgr::LoadAcoreStrings(), ObjectMgr::LoadAreaTriggers(), ObjectMgr::LoadAreaTriggerScripts(), ObjectMgr::LoadAreaTriggerTeleports(), ArenaTeamMgr::LoadArenaTeams(), AuctionHouseMgr::LoadAuctionItems(), AuctionHouseMgr::LoadAuctions(), AutobroadcastMgr::LoadAutobroadcasts(), BattlegroundMgr::LoadBattlegroundTemplates(), BattlegroundMgr::LoadBattleMastersEntry(), ObjectMgr::LoadBroadcastTextLocales(), ObjectMgr::LoadBroadcastTexts(), ChannelMgr::LoadChannelRights(), ChannelMgr::LoadChannels(), CharacterCache::LoadCharacterCacheStorage(), AchievementGlobalMgr::LoadCompletedAchievements(), ConditionMgr::LoadConditions(), ObjectMgr::LoadCreatureAddons(), ObjectMgr::LoadCreatureClassLevelStats(), FormationMgr::LoadCreatureFormations(), ObjectMgr::LoadCreatureLocales(), ObjectMgr::LoadCreatureModelInfo(), ObjectMgr::LoadCreatureMovementOverrides(), ObjectMgr::LoadCreatureQuestItems(), ObjectMgr::LoadCreatures(), ObjectMgr::LoadCreatureTemplateAddons(), ObjectMgr::LoadCreatureTemplateModels(), ObjectMgr::LoadCreatureTemplateResistances(), ObjectMgr::LoadCreatureTemplates(), ObjectMgr::LoadCreatureTemplateSpells(), CreatureTextMgr::LoadCreatureTextLocales(), CreatureTextMgr::LoadCreatureTexts(), ScriptMgr::LoadDatabase(), DisableMgr::LoadDisables(), SpellMgr::LoadEnchantCustomAttr(), ObjectMgr::LoadEquipmentTemplates(), ObjectMgr::LoadExplorationBaseXP(), ObjectMgr::LoadFactionChangeAchievements(), ObjectMgr::LoadFactionChangeItems(), ObjectMgr::LoadFactionChangeQuests(), ObjectMgr::LoadFactionChangeReputations(), ObjectMgr::LoadFactionChangeSpells(), ObjectMgr::LoadFactionChangeTitles(), ObjectMgr::LoadFishingBaseSkillLevel(), AddonMgr::LoadFromDB(), SmartWaypointMgr::LoadFromDB(), GameEventMgr::LoadFromDB(), PoolMgr::LoadFromDB(), ObjectMgr::LoadGameObjectAddons(), ObjectMgr::LoadGameObjectForQuests(), ObjectMgr::LoadGameObjectLocales(), LoadGameObjectModelList(), ObjectMgr::LoadGameObjectQuestItems(), ObjectMgr::LoadGameobjects(), ObjectMgr::LoadGameObjectTemplate(), ObjectMgr::LoadGameObjectTemplateAddons(), ObjectMgr::LoadGameTele(), ObjectMgr::LoadGossipMenu(), ObjectMgr::LoadGossipMenuItems(), ObjectMgr::LoadGossipMenuItemsLocales(), ObjectMgr::LoadGossipText(), Graveyard::LoadGraveyardFromDB(), Graveyard::LoadGraveyardZones(), GroupMgr::LoadGroups(), GuildMgr::LoadGuilds(), GameEventMgr::LoadHolidayDates(), ObjectMgr::LoadInstanceEncounters(), InstanceSaveMgr::LoadInstances(), ObjectMgr::LoadInstanceTemplate(), ObjectMgr::LoadItemLocales(), ObjectMgr::LoadItemSetNameLocales(), ObjectMgr::LoadItemSetNames(), ObjectMgr::LoadItemTemplates(), lfg::LFGMgr::LoadLFGDungeons(), ObjectMgr::LoadLinkedRespawn(), LoadLootTemplates_Creature(), LoadLootTemplates_Disenchant(), LoadLootTemplates_Fishing(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Item(), LoadLootTemplates_Mail(), LoadLootTemplates_Milling(), LoadLootTemplates_Pickpocketing(), LoadLootTemplates_Player(), LoadLootTemplates_Prospecting(), LoadLootTemplates_Reference(), LoadLootTemplates_Skinning(), LoadLootTemplates_Spell(), LoadM2Cameras(), ObjectMgr::LoadMailLevelRewards(), ObjectMgr::LoadMailServerTemplates(), ObjectMgr::LoadModuleStrings(), ObjectMgr::LoadModuleStringsLocale(), MotdMgr::LoadMotd(), ObjectMgr::LoadNPCSpellClickSpells(), ObjectMgr::LoadNpcTextLocales(), ObjectMgr::LoadPageTextLocales(), ObjectMgr::LoadPageTexts(), SpellMgr::LoadPetDefaultSpells(), PetitionMgr::LoadPetitions(), ObjectMgr::LoadPetLevelInfo(), SpellMgr::LoadPetLevelupSpellMap(), ObjectMgr::LoadPetNames(), ObjectMgr::LoadPetNamesLocales(), ObjectMgr::LoadPetNumber(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadPointOfInterestLocales(), ObjectMgr::LoadPointsOfInterest(), ObjectMgr::LoadProfanityNamesFromDB(), ObjectMgr::LoadProfanityNamesFromDBC(), ObjectMgr::LoadQuestAreaTriggers(), ObjectMgr::LoadQuestGreetings(), ObjectMgr::LoadQuestGreetingsLocales(), ObjectMgr::LoadQuestLocales(), ObjectMgr::LoadQuestMoneyRewards(), ObjectMgr::LoadQuestOfferRewardLocale(), ObjectMgr::LoadQuestPOI(), ObjectMgr::LoadQuestRelationsHelper(), ObjectMgr::LoadQuestRequestItemsLocale(), ObjectMgr::LoadQuests(), LoadRandomEnchantmentsTable(), ObjectMgr::LoadReputationOnKill(), ObjectMgr::LoadReputationRewardRate(), ObjectMgr::LoadReputationSpilloverTemplate(), ObjectMgr::LoadReservedPlayerNamesDB(), ObjectMgr::LoadReservedPlayerNamesDBC(), AchievementGlobalMgr::LoadRewardLocales(), AchievementGlobalMgr::LoadRewards(), lfg::LFGMgr::LoadRewards(), ObjectMgr::LoadScriptNames(), ObjectMgr::LoadScripts(), SystemMgr::LoadScriptWaypoints(), PetitionMgr::LoadSignatures(), LoadSkillDiscoveryTable(), LoadSkillExtraItemTable(), SpellMgr::LoadSkillLineAbilityMap(), LoadSkillPerfectItemTable(), SmartAIMgr::LoadSmartAIFromDB(), SpellMgr::LoadSpellAreas(), SpellMgr::LoadSpellBonuses(), SpellMgr::LoadSpellCooldownOverrides(), SpellMgr::LoadSpellEnchantProcData(), SpellMgr::LoadSpellGroups(), SpellMgr::LoadSpellGroupStackRules(), SpellMgr::LoadSpellInfoCorrections(), SpellMgr::LoadSpellInfoCustomAttributes(), SpellMgr::LoadSpellInfoStore(), SpellMgr::LoadSpellLearnSkills(), SpellMgr::LoadSpellLinked(), SpellMgr::LoadSpellMixology(), SpellMgr::LoadSpellPetAuras(), SpellMgr::LoadSpellProcEvents(), SpellMgr::LoadSpellProcs(), SpellMgr::LoadSpellRanks(), SpellMgr::LoadSpellRequired(), ObjectMgr::LoadSpellScriptNames(), SpellMgr::LoadSpellSpecificAndAuraState(), SpellMgr::LoadSpellTargetPositions(), SpellMgr::LoadSpellThreats(), LootItemStorage::LoadStorageFromDB(), TicketMgr::LoadSurveys(), ObjectMgr::LoadTavernAreaTriggers(), ObjectMgr::LoadTempSummons(), TicketMgr::LoadTickets(), ObjectMgr::LoadTrainerSpell(), TransportMgr::LoadTransportTemplates(), ObjectMgr::LoadVehicleAccessories(), ObjectMgr::LoadVehicleSeatAddon(), ObjectMgr::LoadVehicleTemplateAccessories(), ObjectMgr::LoadVendors(), WeatherMgr::LoadWeatherData(), World::LoadWorldStates(), PacketLog::LogPacket(), main(), ObjectMgr::ReturnOrDeleteOldMails(), WorldSession::SendTimeSync(), World::SetInitialWorldSettings(), TransportMgr::SpawnContinentTransports(), Player::Update(), ObjectMgr::ValidateSpellScripts(), and WorldUpdateLoop().

◆ GetMSTimeDiff()

Milliseconds GetMSTimeDiff ( Milliseconds  oldMSTime,
Milliseconds  newMSTime 
)
inline
92{
93 if (oldMSTime > newMSTime)
94 {
95 return oldMSTime - newMSTime;
96 }
97 else
98 {
99 return newMSTime - oldMSTime;
100 }
101}

Referenced by AuctionHouseObject::BuildListAuctionItems(), GetMSTimeDiffToNow(), WorldSession::HandleAuctionListItems(), WorldSession::HandleAuctionListOwnerItems(), WorldUpdateTime::RecordUpdateTime(), and lfg::LFGMgr::UpdateRaidBrowser().

◆ getMSTimeDiff() [1/2]

uint32 getMSTimeDiff ( uint32  oldMSTime,
TimePoint  newTime 
)
inline
124{
125 using namespace std::chrono;
126
127 uint32 newMSTime = uint32(duration_cast<milliseconds>(newTime - GetApplicationStartTime()).count());
128 return getMSTimeDiff(oldMSTime, newMSTime);
129}
uint32 getMSTimeDiff(uint32 oldMSTime, uint32 newMSTime)
Definition: Timer.h:110

References GetApplicationStartTime(), and getMSTimeDiff().

◆ getMSTimeDiff() [2/2]

◆ GetMSTimeDiffToNow() [1/2]

Milliseconds GetMSTimeDiffToNow ( Milliseconds  oldMSTime)
inline
137{
138 return GetMSTimeDiff(oldMSTime, GetTimeMS());
139}
Milliseconds GetTimeMS()
Definition: Timer.h:84
Milliseconds GetMSTimeDiff(Milliseconds oldMSTime, Milliseconds newMSTime)
Definition: Timer.h:91

References GetMSTimeDiff(), and GetTimeMS().

◆ GetMSTimeDiffToNow() [2/2]

uint32 GetMSTimeDiffToNow ( uint32  oldMSTime)
inline
132{
133 return getMSTimeDiff(oldMSTime, getMSTime());
134}
uint32 getMSTime()
Definition: Timer.h:103

References getMSTime(), and getMSTimeDiff().

Referenced by DisableMgr::CheckQuestDisables(), CharacterDatabaseCleaner::CleanDatabase(), TransactionTask::Execute(), TransactionWithResultTask::Execute(), PlayerDump::InitializeTables(), OutdoorPvPMgr::InitOutdoorPvP(), WaypointMgr::Load(), ObjectMgr::LoadAccessRequirements(), AchievementGlobalMgr::LoadAchievementCriteriaData(), AchievementGlobalMgr::LoadAchievementCriteriaList(), AchievementGlobalMgr::LoadAchievementReferenceList(), ObjectMgr::LoadAcoreStrings(), ObjectMgr::LoadAreaTriggers(), ObjectMgr::LoadAreaTriggerScripts(), ObjectMgr::LoadAreaTriggerTeleports(), ArenaTeamMgr::LoadArenaTeams(), AuctionHouseMgr::LoadAuctionItems(), AuctionHouseMgr::LoadAuctions(), AutobroadcastMgr::LoadAutobroadcasts(), BattlegroundMgr::LoadBattlegroundTemplates(), BattlegroundMgr::LoadBattleMastersEntry(), ObjectMgr::LoadBroadcastTextLocales(), ObjectMgr::LoadBroadcastTexts(), ChannelMgr::LoadChannelRights(), ChannelMgr::LoadChannels(), CharacterCache::LoadCharacterCacheStorage(), AchievementGlobalMgr::LoadCompletedAchievements(), ConditionMgr::LoadConditions(), ObjectMgr::LoadCreatureAddons(), ObjectMgr::LoadCreatureClassLevelStats(), FormationMgr::LoadCreatureFormations(), ObjectMgr::LoadCreatureLocales(), ObjectMgr::LoadCreatureModelInfo(), ObjectMgr::LoadCreatureMovementOverrides(), ObjectMgr::LoadCreatureQuestItems(), ObjectMgr::LoadCreatures(), ObjectMgr::LoadCreatureTemplateAddons(), ObjectMgr::LoadCreatureTemplateModels(), ObjectMgr::LoadCreatureTemplateResistances(), ObjectMgr::LoadCreatureTemplates(), ObjectMgr::LoadCreatureTemplateSpells(), CreatureTextMgr::LoadCreatureTextLocales(), CreatureTextMgr::LoadCreatureTexts(), ScriptMgr::LoadDatabase(), DisableMgr::LoadDisables(), SpellMgr::LoadEnchantCustomAttr(), ObjectMgr::LoadEquipmentTemplates(), ObjectMgr::LoadExplorationBaseXP(), ObjectMgr::LoadFactionChangeAchievements(), ObjectMgr::LoadFactionChangeItems(), ObjectMgr::LoadFactionChangeQuests(), ObjectMgr::LoadFactionChangeReputations(), ObjectMgr::LoadFactionChangeSpells(), ObjectMgr::LoadFactionChangeTitles(), ObjectMgr::LoadFishingBaseSkillLevel(), AddonMgr::LoadFromDB(), SmartWaypointMgr::LoadFromDB(), GameEventMgr::LoadFromDB(), PoolMgr::LoadFromDB(), ObjectMgr::LoadGameObjectAddons(), ObjectMgr::LoadGameObjectForQuests(), ObjectMgr::LoadGameObjectLocales(), LoadGameObjectModelList(), ObjectMgr::LoadGameObjectQuestItems(), ObjectMgr::LoadGameobjects(), ObjectMgr::LoadGameObjectTemplate(), ObjectMgr::LoadGameObjectTemplateAddons(), ObjectMgr::LoadGameTele(), ObjectMgr::LoadGossipMenu(), ObjectMgr::LoadGossipMenuItems(), ObjectMgr::LoadGossipMenuItemsLocales(), ObjectMgr::LoadGossipText(), Graveyard::LoadGraveyardFromDB(), Graveyard::LoadGraveyardZones(), GroupMgr::LoadGroups(), GuildMgr::LoadGuilds(), GameEventMgr::LoadHolidayDates(), ObjectMgr::LoadInstanceEncounters(), InstanceSaveMgr::LoadInstances(), ObjectMgr::LoadInstanceTemplate(), ObjectMgr::LoadItemLocales(), ObjectMgr::LoadItemSetNameLocales(), ObjectMgr::LoadItemSetNames(), ObjectMgr::LoadItemTemplates(), lfg::LFGMgr::LoadLFGDungeons(), ObjectMgr::LoadLinkedRespawn(), LoadLootTemplates_Creature(), LoadLootTemplates_Disenchant(), LoadLootTemplates_Fishing(), LoadLootTemplates_Gameobject(), LoadLootTemplates_Item(), LoadLootTemplates_Mail(), LoadLootTemplates_Milling(), LoadLootTemplates_Pickpocketing(), LoadLootTemplates_Player(), LoadLootTemplates_Prospecting(), LoadLootTemplates_Reference(), LoadLootTemplates_Skinning(), LoadLootTemplates_Spell(), LoadM2Cameras(), ObjectMgr::LoadMailLevelRewards(), ObjectMgr::LoadMailServerTemplates(), ObjectMgr::LoadModuleStrings(), ObjectMgr::LoadModuleStringsLocale(), MotdMgr::LoadMotd(), ObjectMgr::LoadNPCSpellClickSpells(), ObjectMgr::LoadNpcTextLocales(), ObjectMgr::LoadPageTextLocales(), ObjectMgr::LoadPageTexts(), SpellMgr::LoadPetDefaultSpells(), PetitionMgr::LoadPetitions(), ObjectMgr::LoadPetLevelInfo(), SpellMgr::LoadPetLevelupSpellMap(), ObjectMgr::LoadPetNames(), ObjectMgr::LoadPetNamesLocales(), ObjectMgr::LoadPetNumber(), ObjectMgr::LoadPlayerInfo(), ObjectMgr::LoadPointOfInterestLocales(), ObjectMgr::LoadPointsOfInterest(), ObjectMgr::LoadProfanityNamesFromDB(), ObjectMgr::LoadProfanityNamesFromDBC(), ObjectMgr::LoadQuestAreaTriggers(), ObjectMgr::LoadQuestGreetings(), ObjectMgr::LoadQuestGreetingsLocales(), ObjectMgr::LoadQuestLocales(), ObjectMgr::LoadQuestMoneyRewards(), ObjectMgr::LoadQuestOfferRewardLocale(), ObjectMgr::LoadQuestPOI(), ObjectMgr::LoadQuestRelationsHelper(), ObjectMgr::LoadQuestRequestItemsLocale(), ObjectMgr::LoadQuests(), LoadRandomEnchantmentsTable(), ObjectMgr::LoadReputationOnKill(), ObjectMgr::LoadReputationRewardRate(), ObjectMgr::LoadReputationSpilloverTemplate(), ObjectMgr::LoadReservedPlayerNamesDB(), ObjectMgr::LoadReservedPlayerNamesDBC(), AchievementGlobalMgr::LoadRewardLocales(), AchievementGlobalMgr::LoadRewards(), lfg::LFGMgr::LoadRewards(), ObjectMgr::LoadScriptNames(), ObjectMgr::LoadScripts(), SystemMgr::LoadScriptWaypoints(), PetitionMgr::LoadSignatures(), LoadSkillDiscoveryTable(), LoadSkillExtraItemTable(), SpellMgr::LoadSkillLineAbilityMap(), LoadSkillPerfectItemTable(), SmartAIMgr::LoadSmartAIFromDB(), SpellMgr::LoadSpellAreas(), SpellMgr::LoadSpellBonuses(), SpellMgr::LoadSpellCooldownOverrides(), SpellMgr::LoadSpellEnchantProcData(), SpellMgr::LoadSpellGroups(), SpellMgr::LoadSpellGroupStackRules(), SpellMgr::LoadSpellInfoCorrections(), SpellMgr::LoadSpellInfoCustomAttributes(), SpellMgr::LoadSpellInfoStore(), SpellMgr::LoadSpellLearnSkills(), SpellMgr::LoadSpellLinked(), SpellMgr::LoadSpellMixology(), SpellMgr::LoadSpellPetAuras(), SpellMgr::LoadSpellProcEvents(), SpellMgr::LoadSpellProcs(), SpellMgr::LoadSpellRanks(), SpellMgr::LoadSpellRequired(), ObjectMgr::LoadSpellScriptNames(), SpellMgr::LoadSpellSpecificAndAuraState(), SpellMgr::LoadSpellTargetPositions(), SpellMgr::LoadSpellThreats(), LootItemStorage::LoadStorageFromDB(), TicketMgr::LoadSurveys(), ObjectMgr::LoadTavernAreaTriggers(), ObjectMgr::LoadTempSummons(), TicketMgr::LoadTickets(), ObjectMgr::LoadTrainerSpell(), TransportMgr::LoadTransportTemplates(), ObjectMgr::LoadVehicleAccessories(), ObjectMgr::LoadVehicleSeatAddon(), ObjectMgr::LoadVehicleTemplateAccessories(), ObjectMgr::LoadVendors(), WeatherMgr::LoadWeatherData(), World::LoadWorldStates(), main(), ObjectMgr::ReturnOrDeleteOldMails(), World::SetInitialWorldSettings(), TransportMgr::SpawnContinentTransports(), Player::Update(), and ObjectMgr::ValidateSpellScripts().

◆ GetTimeMS()

◆ localtime_r()

AC_COMMON_API struct tm * localtime_r ( time_t const *  time,
struct tm *  result 
)
227{
228 localtime_s(result, time);
229 return result;
230}

Referenced by guild_commandscript::HandleGuildInfoCommand(), and Acore::Time::TimeBreakdown().