Package com.soywiz.klock
Types
An exception for Date operations.
Allows to format and parse instances of Date, DateTime and DateTimeTz
Represents a Date in UTC (GMT+00) with millisecond precision.
Represents a right-opened range between two dates.
Immutable structure representing a set of a monthSpan and a timeSpan. This structure loses information about which months are included, that makes it impossible to generate a real TimeSpan including months. You can use DateTimeRange.duration to get this information from two real DateTime.
DateTime with an associated TimezoneOffset
Represents one of the twelve months of the year.
Represents a number of years and months temporal distance.
Class for measuring relative times with as much precision as possible.
Represents a union of millisecond, second, minute and hour.
Class to provide time that can be overridden to mock or change its behaviour.
Represents a span of time, with milliseconds precision.
Represents a time zone offset with millisecond precision. Usually minute is enough. Can be used along DateTimeTz to construct non universal, local times.
Represents a Year in a typed way.
Functions
Sleeps the thread during the specified time. Spinlocks on JS
Executes a callback and measure the time it takes to complete.
Executes the callback measuring the time it takes to complete. Returns a TimedResult with the time and the return value of the callback.
Properties
TimeSpan representing this number as microseconds or 1 / 1_000_000 seconds.
TimeSpan representing this number as microseconds or 1 / 1_000_000 seconds.
TimeSpan representing this number as microseconds or 1 / 1_000_000 seconds.
TimeSpan representing this number as microseconds or 1 / 1_000_000 seconds.
TimeSpan representing this number as milliseconds or 1 / 1_000 seconds.
TimeSpan representing this number as milliseconds or 1 / 1_000 seconds.
TimeSpan representing this number as milliseconds or 1 / 1_000 seconds.
TimeSpan representing this number as milliseconds or 1 / 1_000 seconds.
TimeSpan representing this number as nanoseconds or 1 / 1_000_000_000 seconds.
TimeSpan representing this number as nanoseconds or 1 / 1_000_000_000 seconds.
TimeSpan representing this number as nanoseconds or 1 / 1_000_000_000 seconds.
TimeSpan representing this number as nanoseconds or 1 / 1_000_000_000 seconds.
Total years of this MonthSpan as double (might contain decimals)