Using lua to trigger map events based on server date/time

Is it possible to use a lua_run entity in my map to get the server’s date or time of day and trigger map logic based on this? My ideas are to change the map’s look for certain holidays, or for it to know whether it’s night or day and trigger map logic based on that.

If this is possible, how would the code be structured? I know how to trigger logic_relays if a certain case is true, false, etc, but I am a beginner to Lua. Any help is greatly appreciated!

You can do that via lua although, like running logic_relays and such entities that trigger events on map

ents.FindByName

Entity:Fire

Yep, I have firing map logic figured out. I am wondering how to have the code check the server’s date/time and then fire certain logic when it is a certain date, range of days, or within a certain time of day.

os.date

Use the example as reference.