Scheduling mqtt post

I will have a file (text, excel... doesen't matter). On each line of this file there is date, time, and the code for a function. What i need is to execute the function written in my file at the specified time and date in node.js on a server.

Since the function is actually a post on a mqtt broker, I'm actualy looking for any method that could do.

Could anyone point me to the right direction?

Thank you

You could use setTimeout to do that.

See the example in this question: Call a javascript function at a specific time of day