Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
greengiant83
Visitor

How to get current time or unique id

How can I get a unique string to use to bypass caching. Is there a way to get the current time on the Roku?
0 Kudos
1 REPLY 1
RokuChris
Roku Employee
Roku Employee

Re: How to get current time or unique id

http://sdkdocs.roku.com/display/RokuSDKv43/ifDateTime

dt = CreateObject("roDateTime")
cachebuster = dt.AsSeconds().ToStr()
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.