Sorry for asking this again. As far as I understand, I will tell you kindly correct me.
@h is current hour, which goes to 9. -30m which is 30 minutes before current hour, so it will be 8:30 - 8:59.
@d is current day at 0:00 hours. so -30m would be yesterday 23:30 to 23:59.