Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
gonzotek
Level 7

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

Re: How to check what time it is?

thank you very much Smiley Very Happy
0 Kudos