library / org.akop.kotx.types / MutableDateTime / <init>

<init>

MutableDateTime(timeZoneId: String? = null)

Constructs a new MutableDateTime object using specified time zone.

If timeZoneId is null, uses the default time zone.

MutableDateTime(calendar: Calendar)

Constructs a new MutableDateTime object based on specified calendar instance.

MutableDateTime(dateTime: DateTime)

Constructs a new MutableDateTime object based on specified dateTime instance.

MutableDateTime(millis: Long, timeZoneId: String? = null)

Constructs a new MutableDateTime object with specified number of milliseconds since epoch.

Uses time zone with specified timeZoneId, or the default time zone if null.

MutableDateTime(year: Int, month: Int, day: Int, hours: Int = 0, minutes: Int = 0, seconds: Int = 0, milliseconds: Int = 0, timeZoneId: String? = null)

Constructs a new MutableDateTime object with specified year, month and day, and optionally hours, minutes, seconds and milliseconds.

Uses time zone with specified timeZoneId, or the default time zone if null.