KtUnits alternatives and similar libraries
Based on the "Misc" category.
Alternatively, view ktunits alternatives based on common mentions on social networks and blogs.
-
jclasslib
jclasslib bytecode viewer is a tool that visualizes all aspects of compiled Java class files and the contained bytecode. -
kotlin-logging
Lightweight logging framework for Kotlin. Used as a wrapper for slf4j with Kotlin extensions. -
klock
Consistent and portable date and time utilities for multiplatform kotlin (JVM, JS and Common). -
Humanizer.jvm
Humanizer.jvm meets all your jvm needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities. -
actions-on-google-kotlin
Port of official Node.js SDK to Kotlin. Complete with all features and tests and nearly identical API. -
klutter
A mix of random small libraries for Kotlin, the smallest reside here until big enough for their own repository. -
SimpleDNN
SimpleDNN is a machine learning lightweight open-source library part of KotlinNLP and has been designed to support relevant neural network architectures in natural language processing tasks. -
kassava
This library provides some useful kotlin extension functions for implementing toString() and equals() without all of the boilerplate. -
kotlin-futures
A collections of extension functions to make the JVM Future, CompletableFuture, ListenableFuture API more functional and Kotlin like. -
PrimeCalendar
Provides all of the java.util.Calendar functionalities for Civil, Persian, Hijri, Japanese, etc, as well as their conversion to each other. -
kasechange
Multiplatform Kotlin library to convert strings between various case formats including Camel Case, Snake Case, Pascal Case and Kebab Case
Get performance insights in less than 4 minutes.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of KtUnits or a related project?
README
KtUnits
Simple unit conversion library for Kotlin.
Usage
Conversion
You can convert units easily:
fun foo() {
val m = 100.minutes.toMilliseconds // magic
println("100 minutes equal $m milliseconds")
}
Parameters
You can take a value as an argument without worrying about the units, and convert to the units you want when you use it.
fun wait(time: TimeValue) {
Thread.sleep(time.toMilliseconds)
}
fun bar() {
wait(5.seconds)
wait(10.days)
}
Supported units
The library currently supports time (from nanoseconds to days) and memory (from bits to pebibytes).
Download
Just put this in your build.gradle
or Build.kt
. Replace <version>
with the version shown in the badge at the top of this README.md
.
dependencies {
compile("me.sargunvohra.lib:ktunits:1.1.2")
}