AndroidTimeField

class AndroidTimeField(timestamp: Long, timeZone: String?, allDay: Boolean, tzRegistry: TimeZoneRegistry)

Converts timestamps from the android.provider.CalendarContract.Events.DTSTART or android.provider.CalendarContract.Events.DTEND fields into other representations.

Parameters

timestamp

value of the Android DTSTART/DTEND field (timestamp in milliseconds)

timeZone

value of the respective Android timezone field or null for system default time zone

allDay

whether Android ALL_DAY field is non-null and not zero

Constructors

Link copied to clipboard
constructor(timestamp: Long, timeZone: String?, allDay: Boolean, tzRegistry: TimeZoneRegistry)

Functions

Link copied to clipboard
fun asIcal4jDate(): Date

Converts the given Android date/time into an ical4j date property.