If it's a single player map with a single unit/hero controlled by the player, you can do it with triggers; one can detect when that unit enters the region and sets the time of day to 0.00 (and turns the day/night cycle off ofc) and another for when the unit leaves the region to restore the time to whatever you want. In any other case, not doable.