# Current Day/Night State

Grammar — Current game time of day
Flags — Native | Function

Returns the current game time of day.

Returns — int<preset::DayNightEventType>

native int GameTimeOfDayCurrentTimeEvent();

Category: Environment / Lighting

# Examples

mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:402

    // Automatic Variable Declarations
    // Implementation
    return (GameTimeOfDayCurrentTimeEvent() == c_gameTimeEventDawn);
}