Companion

object Companion

Properties

Link copied to clipboard

Lambda that produces a JSON string containing version, release date, and build time.

Link copied to clipboard

Lambda that produces a plain-text string containing version, release date, and build time.

Link copied to clipboard
val TIME_ZONE: TimeZone

The timezone used for formatting build date/time strings.

Functions

Link copied to clipboard
fun KClass<*>.buildDateTime(): LocalDateTime?

Returns the build LocalDateTime from the Version annotation on this KClass, or null if the annotation is not present.

Link copied to clipboard

Returns the formatted build date/time string from the Version annotation on this KClass, or "Unknown" if the annotation is not present.

Link copied to clipboard

Returns the version string from the Version annotation on this KClass, or "Unknown" if the annotation is not present.

Link copied to clipboard
fun KClass<*>.versionDesc(asJson: Boolean = false): String

Returns a description string containing version, release date, and build time from the Version annotation on this KClass.