#How can i auto activate the current date when it matches a specific timestamp?

19 messages · Page 1 of 1 (latest)

brazen light

What can i use so that the current date will be directly activated when the current date is equal to a specified timestamp?

lusty furnaceBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
magic osprey

What does activating a date mean in this context?

brazen light

1698333071068 I want to run the code when the timestamp is equal to the current (Date.now()) timestamp, how can i do it?

shrewd plinth
brazen light

I will examine node-cron thanks

dense drift

Put the date into the part which’ll end when it reaches said time

brazen light
dense drift

How will it crash?

Imo using a setInterval or node-cron checking everything at one time is bad

brazen light
magic osprey
dense drift

Can you explain how? Genuinely curious

magic osprey

How do you think setTimeout works?

dense drift

No idea, really

brazen light
magic osprey