aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
diff options
context:
space:
mode:
authorSeRaid <77941535+SeRaid743@users.noreply.github.com>2024-05-02 23:17:03 +1200
committerGitHub <noreply@github.com>2024-05-02 13:17:03 +0200
commit382f226797a2fae468c950a6941b74fd5d525404 (patch)
treeab3f302644a8cfedd669206bd5355175689da382 /src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
parent0b3495878211a456d3cd8773ee09cab1c65aa2a3 (diff)
downloadskyhanni-382f226797a2fae468c950a6941b74fd5d525404.tar.gz
skyhanni-382f226797a2fae468c950a6941b74fd5d525404.tar.bz2
skyhanni-382f226797a2fae468c950a6941b74fd5d525404.zip
warning when upgrade avaliavble (#1642)
Co-authored-by: Cal <cwolfson58@gmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
index 2aa542699..bf4a11686 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/TimeUtils.kt
@@ -166,6 +166,8 @@ object TimeUtils {
val Long.ticks get() = (this * 50).milliseconds
val Int.ticks get() = (this * 50).milliseconds
+
+ val Float.minutes get() = toDouble().minutes
}
private const val FACTOR_SECONDS = 1000L