'stream_dt represents the date and time of a planned event, current_dt represents the system's date and time
'values are pre-adjusted to account for time-zone differences
timeLeft = AsSeconds(stream_dt) - AsSeconds(current_dt)
timeLeft = stream_dt.AsSeconds() - current_dt.AsSeconds()
dt = CreateObject("roDateTime")
numberOfSeconds = dt.AsSeconds()
differenceSeconds = dt2.AsSeconds() - dt1.AsSeconds()
"belltown" wrote:
To find the difference in seconds between two roDateTime objects, you could do this:
differenceSeconds = dt2.AsSeconds() - dt1.AsSeconds()
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!