How to get clock tick "onTick" in current epoch time?

As the question states, I have an event listener listening to click.onTick.addEventListener(function(clocktick) {
// log out the current epoch time here

});

How can get the epoch time to be logged within the function?

Hello,

The clock is sent to the listener of the onTick event, so you can get the current time with clocktick.currentTime.

Best,

Hannah

I tried that, but all the log says is: dayNumber and secondsOfDay, not the epoch timeā€¦ I am looking for epochTime.

Sorry, I missed that. The function returns a JulianDate. You could probably get the epoch time by using JulianDate.toDate to get a javascript date and get the epoch time from that

-Hannah