Package-level declarations
Types
Allows to format and parse instances of Date, DateTime and DateTimeTz
Represents a right-opened range between two dates.
Immutable structure representing a set of a monthSpan and a duration. This structure loses information about which months are included, that makes it impossible to generate a real Duration 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 count the number of times a sample was added in a timeWindow
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.
Properties
Returns this date with the local offset of this device. Components might change because of the offset.
The local offset for this date for the timezone of the device
Returns a new local date that will match these components.
A Duration as a TimezoneOffset.
Total years of this MonthSpan as double (might contain decimals)
Returns this date with a 0 offset. Components are equal.
Functions
Executes a callback and measure the time it takes to complete.
Converts this date to String using format for representing it
Constructs a new DateTime from date and time information.
Executes the callback measuring the time it takes to complete. Returns a TimedResult with the time and the return value of the callback.
Returns the current local time as DateTimeTz.
Returns this date with a local offset. Components might change because of the offset.
Returns a new local date that will match these components but with a different offset.
Converts this date to String using the DateFormat.DEFAULT_FORMAT for representing it
Returns this date with a local offset. Components might change because of the timeZone.