Hi,
in the very most of my microcontroller applications I use a timer to generate a regular interrupt.
And I have a timeFlag register (volatile, flags SET in the ISR, cleared in MAIN())
Usually something in the 20ms period. --> I set a 20ms tick flag
So after 50 ticks I have a second --> I set the 1s flag
After 60 seconds I have a minute --> I set the 1minute flag
After 60 minutes I have an hour --> I set the 1h flag
you can use set your own flag every 6h ...
And I check the flag register in main() ... and process the according tasks.
It´s all rather basic.
***
I still don´t know what you expect ...and ... what difficulties you see ...
And the 15 minutes measurement interval is a new information ... don´t know what to do with this...