# Current Time Of Day

Grammar — Current game time of day
FlagsNative | Function

Returns the current game time of day.

Returns — string<timeofday>

native string GameTimeOfDayGet();

Category: Environment / Lighting

# Examples

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1462


    if ((libGAwX_gv_timeOfDayOverrideCritSection == 0)) {
        libGAwX_gv_timeOfDayOverrideOldTOD = GameTimeOfDayGet();
        GameTimeOfDaySet(libGAwX_gv_timeOfDayOverrideNewTOD);
        GameTimeOfDayPause(true);