Skip to content

Conversation

@emilyy-dev
Copy link
Contributor

Pull Request

Type

  • Internal change (Doesn't affect end-user).
  • External change (Does affect end-user).
  • Wiki (Changes towards the Wiki).
  • Other: __________

Description

Refactored TimeUtil utility class

  • Minimized TimeUtil#getRemaining.
  • Fixed a bug regarding how days and hours were calculated in TimeUtil#getTime.
  • Ditched the use of ints and use longs instead.
  • Implemented int-taking methods so it won't break for the already existing uses through interfaces.
  • Use StringJoiner instead of StringBuilder for simplicity's sake.

Closes N/A

* Minimized `TimeUtil#getRemaining`.
* Fixed a bug regarding how days and hours were calculated in `TimeUtil#getTime`.
* Ditched the use of `int`s and use `long`s instead.
Copy link
Member

@extendedclip extendedclip left a comment

Choose a reason for hiding this comment

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

LGTM

@extendedclip extendedclip merged commit 8698449 into PlaceholderAPI:master Aug 6, 2020
@NUTT1101
Copy link

NUTT1101 commented Aug 7, 2020

Can you fix that?
The time format for 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

Successfully merging this pull request may close these issues.

3 participants