Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doing the math twice? #2

Open
RunPun opened this issue Sep 23, 2021 · 0 comments
Open

doing the math twice? #2

RunPun opened this issue Sep 23, 2021 · 0 comments

Comments

@RunPun
Copy link

RunPun commented Sep 23, 2021

Hi! it seems the function "convertTimeFrames" is converting to seconds twice - both when defining the variables "hours" and "minutes", and once again when defining the variable "totalTime".

...
var hours = parseInt(timeArray[0]) * 60 * 60;
var minutes = parseInt(timeArray[1]) * 60;
...
var totalTime = (hours6060) + (minutes*60) + seconds //+ milliseconds;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant