Two separate deep sleep cycles?

I was wondering if there was a way to do the following for an esp32 project?
Device runs on battery with solar charging.
Device should sleep for all the time that the sun is gone.
When sun comes up then device enters another deep sleep cycle where it runs and sends data for 2 minutes, then sleeps for 1 hour.
Device on sun going down then sleeps until next day dawns.