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: 
xoceunder
Roku Guru

two Timestamp for progress %

Jump to solution

I have 2 dates in Timestamp and I want to be able to get the percentage to be able to make the bar work

 

time 1 =  1602064800

time 2 = 1602065200

 

could you give me a help

0 Kudos
1 Solution

Accepted Solutions
norcaljohnny
Roku Guru

Re: two Timestamp for progress %

Jump to solution

percentage = (100/time 2) * time 1

but I have a feeling you are wording the question wrong..

View solution in original post

1 REPLY 1
norcaljohnny
Roku Guru

Re: two Timestamp for progress %

Jump to solution

percentage = (100/time 2) * time 1

but I have a feeling you are wording the question wrong..