Time dependent actions

So I’m still trying to learn how to mod and script, and I’ve started looking at how the game does things and I’m trying to learn from that. Does anyone know where the command for all hearthings to eat is?
I’m trying to figure out how to have a Heathling do something at a specific time and wanted to see how the devs did it. And help would be awesome!