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: 
balbant
Level 7

Convert time and date from one time zone to another.

I have a particular date and time. Now, I want to convert the time according to device current time zone. Basically what I need is an script that, when provided with a time and a timezone can return the time in another time zone. How can I achieve it ?
0 Kudos
1 Reply
Highlighted
joetesta
Level 10

Re: Convert time and date from one time zone to another.

Sounds like you'd first need to convert the incoming time to UTC then you can use this to get the box's local time: ToLocalTime[/url:33qrxmw3]
aspiring
0 Kudos