Content feed based on a world clock

Iā€™d like my AR content to play in sync to actual time, ie start at midnight. And if the user launches their experience at 12:02 they are 2 minutes into the experience.
Is this possible?

You could do it using Date.now()

const startDate = new Date('2024-09-20T15:30:00'); // Set your start date and time here
const now = Date.now();
const difference = now - startDate.getTime();

console.log(difference); // Milliseconds difference (negative if in the future, positive if in the past)