W3cubDocs

/Kotlin

ExperimentalTime

Platform and version requirements: JVM (1.3), JS (1.3), Native (1.3)
@Target([AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS]) annotation class ExperimentalTime

This annotation marks the experimental preview of the standard library API for measuring time and working with durations.

Note that this API is in a preview state and has a very high chance of being changed in the future. Do not use it if you develop a library since your library will become binary incompatible with the future versions of the standard library.

Any usage of a declaration annotated with @ExperimentalTime must be accepted either by annotating that usage with the OptIn annotation, e.g. @OptIn(ExperimentalTime::class), or by using the compiler argument -Xopt-in=kotlin.time.ExperimentalTime.

Constructors

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)

<init>

This annotation marks the experimental preview of the standard library API for measuring time and working with durations.

ExperimentalTime()

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.time/-experimental-time/index.html