Skip to content

MOBILEWEBVIEW-60: add method for format Long to TimeSpan#33

Merged
sergeysozinov merged 3 commits into
developfrom
feature/MOBILEWEBVIEW-60
Feb 26, 2026
Merged

MOBILEWEBVIEW-60: add method for format Long to TimeSpan#33
sergeysozinov merged 3 commits into
developfrom
feature/MOBILEWEBVIEW-60

Conversation

@sergeysozinov
Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Long → TimeSpan string formatter to complement the existing TimeSpan string → millis parser in mindbox-common.

Changes:

  • Added Long.millisToTimeSpan() extension and internal formatting implementation in TimeSpanParser.
  • Added unit tests covering formatting across milliseconds/seconds/minutes/hours/days and negative inputs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
mindbox-common/src/commonMain/kotlin/cloud/mindbox/mobile_sdk/TimeSpanParser.kt Introduces the millis-to-TimeSpan formatting API and related constants.
mindbox-common/src/commonTest/kotlin/cloud/mindbox/mobile_sdk/TimeSpanParserTest.kt Adds test coverage for the new formatter behavior and output structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mindbox-common/src/commonMain/kotlin/cloud/mindbox/mobile_sdk/TimeSpanParser.kt Outdated
Comment thread mindbox-common/src/commonMain/kotlin/cloud/mindbox/mobile_sdk/TimeSpanParser.kt Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sergeysozinov sergeysozinov merged commit 80e199f into develop Feb 26, 2026
8 checks passed
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.

3 participants