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: 
lock_4815162342
Channel Surfer

How to check what time it is?

I have live streams that are scheduled for certain times I would like the poster screen to vary depending on when the stream is live.

How do I get the current time?
If the roku does not have a system time, can I check some time keeper server?
0 Kudos
2 REPLIES 2
gonzotek
Visitor

Re: How to check what time it is?

http://sdkdocs.roku.com/display/sdkdoc/roDateTime
date = CreateObject("roDateTime")
print "The date is now "; date.AsDateString("long-date")

More methods detailed here:
http://sdkdocs.roku.com/display/sdkdoc/ifDateTime
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
lock_4815162342
Channel Surfer

Re: How to check what time it is?

thank you very much 😄
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.