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

whats the 39 for ? #45

Open
gautamz07 opened this issue Sep 15, 2015 · 1 comment
Open

whats the 39 for ? #45

gautamz07 opened this issue Sep 15, 2015 · 1 comment

Comments

@gautamz07
Copy link

Not really an issue , this is an awesome plugin ! never knew you could do so much , with so little , one question , what the 39 in the code for ?

https://github.com/sbstjn/timesheet.js/blob/master/source/javascripts/timesheet.js#L35

On the above line i mean.

Thank you.

@farfromunique
Copy link

The portion of the line is:

Math.round((cur.end-cur.start)/1000/60/60/24/39)

That takes the time in MS, and then divides by 1000 (seconds), 60 (Minutes), 60 (hours), 24 (days), and 39 (months???)

39 is in the place where days in a month should go, but it doesn't make sense. I think this could be a bug.

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

2 participants