DateTime

open class DateTime : Parcelable

A date-time with a time-zone in the ISO-8601 calendar system.

Constructors

Link copied to clipboard
constructor(epochTime: Long, timezoneOffsetInMinutes: Int, @NonNull timezoneId: String)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun durationInSecondsUntil(dateTime: DateTime): Long
Returns the number of seconds until the specified date-time.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
@JvmStatic
open fun fromMillis(millis: Long): DateTime
Link copied to clipboard
open fun getEpochTime(): Long
Returns the epoch time.
Link copied to clipboard
Returns the timezone ID.
Link copied to clipboard
Returns the timezone offset in minutes.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
@JvmStatic
open fun now(): DateTime
Link copied to clipboard
Returns a Calendar representation of this object.
Link copied to clipboard
open fun toString(): String
Returns an ISO 8601 representation of this object, formatted as: {@value DATE_TIME_PATTERN_M}.
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)