Title: Theory / Unimportant / CS / Programming / Kotlin / Library / Time

Typ: TimeUnit
TypMeaning: time durations at a given unit of granularity
Page: https://developer.android.com/topic/libraries/architecture/workmanager/how-to/define-work
Language: Kotlin
Value: NANOSECONDS
Value2: MICROSECONDS
Value3: MILLISECONDS
Value4: SECONDS
Value5: MINUTES
Value6: HOURS
Value7: DAYS

Instruction: timeUnit.convert(
  sourceDuration,
  sourceUnit
)
Page: https://developer.android.com/reference/java/util/concurrent/TimeUnit
Language: Kotlin
Returns: How many of timeUnit is in sourceDuration sourceUnit
Variables: timeUnit: TimeUnit

Instruction: timeUnit.convert(
  duration
)
Page: https://developer.android.com/reference/java/util/concurrent/TimeUnit
Language: Kotlin
Returns: How many of timeUnit is in duration
Variables: timeUnit: TimeUnit

Instruction: timeUnit.sleep(
  timeout
)
Page: https://developer.android.com/reference/java/util/concurrent/TimeUnit
Effect: Thread sleep for timeout timeunit
Language: Kotlin
Variables: timeUnit: TimeUnit

Instruction: timeUnit.sleep(
  thread,
  timeout
)
Page: https://developer.android.com/reference/java/util/concurrent/TimeUnit
Effect: Performs a timed Thread.join using this time unit.
Language: Kotlin
Variables: timeUnit: TimeUnit

Instruction: timeUnit.sleep(
  obj,
  timeout
)
Page: https://developer.android.com/reference/java/util/concurrent/TimeUnit
Effect: Performs a timed Object.wait using this time unit.
Language: Kotlin
Variables: timeUnit: TimeUnit

Instruction: timeUnit.toChronoUnit()
Page: https://developer.android.com/reference/java/util/concurrent/TimeUnit
Language: Kotlin
Returns: Same time unit in ChronoUnit
Variables: timeUnit: TimeUnit

Instruction: timeUnit.toDays/Hours/Minutes/Seconds/Micros/Millis/Nanos(duration)
Page: https://developer.android.com/reference/java/util/concurrent/TimeUnit
Language: Kotlin
Returns: The number of Days/Hours/Minutes/Seconds/Micros/Millis/Nanos in duration timeUnit
Variables: timeUnit: TimeUnit

Typ: Duration
Meaning: A duration, up to the nano second
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin

Instruction: TimeUnit.of(chronoUnit)
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Returns: chronoUnit as a TimeUnit

Instruction: Duration.ZERO
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Returns: A duration of Zero

Instruction: Duration.between(
  startInclusive,
  endExclusive
)
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Returns: The duration between endExclusive and startInclusive

Instruction: Duration.from(
  temporalAmount
)
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Returns: The duration equivalent to temporalAmount

Instruction: Duration.of(
  amount,
  timeUnit
)
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Returns: The duration representing amount timeUnit

Instruction: Duration.ofDays/Hours/Minutes/Seconds/Millis/Micro/Nano(
  amoun
)
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Returns: The duration representing amount Days/Hours/Seconds/Millis/Micro/Nano

Instruction: Duration.Parse(
  text
)
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Returns: a Duration from a text string such as PnDTnHnMn.nS.

Instruction: todo: non static methods
Page: https://developer.android.com/reference/java/time/Duration
Language: Kotlin
Variables: duration: Duration

Typ: Temporal
Meaning: Framework-level interface defining read-write access to a temporal object, such as a date, time, offset or some combination of these.
TODO
Page: https://developer.android.com/reference/java/time/temporal/TemporalAmount
Language: Kotlin

Typ: TemporalAmount
Meaning: Framework-level interface defining an amount of time, such as "6 hours", "8 days" or "2 years and 3 months".tODO
Page: https://developer.android.com/reference/java/time/temporal/TemporalAmount

Typ: TemporalUnit
Meaning: A unit of date-time, such as Days or Hours.
Page: https://developer.android.com/reference/java/time/temporal/TemporalUnit

Typ: ChronoUnit: todo
TypMeaning: A standard set of date periods units.
Page: https://developer.android.com/reference/java/time/temporal/ChronoUnit
Value: FOREVER
Artificial unit that represents the concept of forever.
Value2: ERAS
Unit that represents the concept of an era.
Value3: MILLENNIA
Unit that represents the concept of a millennium.
Value4: CENTURIES
Unit that represents the concept of a century.
Value5: DECADES
Unit that represents the concept of a decade.
Value6: YEARS
Unit that represents the concept of a year.
Value7: MONTHS
Unit that represents the concept of a month.
Value8: WEEKS
Unit that represents the concept of a week.
Value9: DAYS
Unit that represents the concept of a day.
Value10: HALF_DAYS
Unit that represents the concept of half a day, as used in AM/PM.
Value11: HOURS
Unit that represents the concept of an hour.
Value12: MINUTES
Unit that represents the concept of a minute.
Value13: SECONDS
Unit that represents the concept of a second.
Value14: MILLIS
Unit that represents the concept of a millisecond.
Value15: MICROS
Unit that represents the concept of a microsecond.
Value16: NANOS
Unit that represents the concept of a nanosecond, the smallest supported unit of time.