How i can make endless game like Alto's Adventure that dynamic weather system and changing the day & night in unreal engine 4 ?

Mostly i wanna know how day and night is happening in game like Alto’s Adventure , so if it is possible to make in Unreal Engine 4 and what is the logic I’m not getting that . I want build that, mentioned that, using programming as well as blue print , honestly i don’t understand blueprint that much , but yeah i know programming in c++ and concepts of OOP.