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

Report page: add date to hour converter #299

Closed
wants to merge 1 commit into from

Conversation

Jedoku
Copy link
Contributor

@Jedoku Jedoku commented Feb 12, 2024

WIP(i not sure that is works)

@Jedoku Jedoku requested a review from kostyanf14 February 12, 2024 17:12
def days_to_hours(time_str)
days, time = time_str.split('.')
hours, minutes, seconds = time.split(':').map(&:to_i)
total_hours = days.to_i * 24 + hours

Check warning

Code scanning / Rubocop

Checks for expressions containing multiple binary operations with ambiguous precedence. Warning

Lint/AmbiguousOperatorPrecedence: Wrap expressions with varying precedence with parentheses to avoid ambiguity.
@Jedoku Jedoku closed this Feb 12, 2024
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

Successfully merging this pull request may close these issues.

1 participant