Functions: FnMutableDateTime

1. Overview

FnMutableDateTime is a function hub class containing a lot of static methods to convert from various input objects to MutableDateTime. Those static methods return functions whose output is MutableDateTime and whose input can be Calendar, Date, Integer list and Long among others.

2. Functions

Function nameTypeParamsDescription
calendarToMutableDateTimeFunction<T, MutableDateTime>

It converts a Calendar into a MutableDateTime

calendarToMutableDateTimeFunction<T, MutableDateTime>DateTimeZone dateTimeZone

It converts a Calendar into a MutableDateTime in the given DateTimeZone

calendarToMutableDateTimeFunction<T, MutableDateTime>Chronology chronology

It converts a Calendar into a MutableDateTime with the given Chronology

dateToMutableDateTimeFunction<T, MutableDateTime>

The input Date is converted into a MutableDateTime

dateToMutableDateTimeFunction<T, MutableDateTime>DateTimeZone dateTimeZone

The input Date is converted into a MutableDateTime configured with the given DateTimeZone

dateToMutableDateTimeFunction<T, MutableDateTime>Chronology chronology

The input Date is converted into a MutableDateTime with the given Chronology

integerFieldArrayToMutableDateTimeFunction<Integer[], MutableDateTime>

A MutableDateTime is created from the given Integer array.

The valid input Integer[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
integerFieldArrayToMutableDateTimeFunction<Integer[], MutableDateTime>Chronology chronology

A MutableDateTime is created from the given Integer array. The result will be created with the given Chronology

The valid input Integer[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
integerFieldCollectionToMutableDateTimeFunction<Collection<Integer>, MutableDateTime>

A MutableDateTime is created from the input Integer Collection.

The valid input Collection<Integer> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
integerFieldCollectionToMutableDateTimeFunction<Collection<Integer>, MutableDateTime>Chronology chronology

A MutableDateTime is created from the input Integer Collection. The result will be created with the given Chronology

The valid input Collection<Integer> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
longToMutableDateTimeFunction<Long, MutableDateTime>

The input Long representing the time in milliseconds is converted into a MutableDateTime

longToMutableDateTimeFunction<Long, MutableDateTime>DateTimeZone dateTimeZone

The input Long representing the time in milliseconds is converted into a MutableDateTime in the given DateTimeZone

longToMutableDateTimeFunction<Long, MutableDateTime>Chronology chronology

The input Long representing the time in milliseconds is converted into a MutableDateTime with the given Chronology

strFieldArrayToMutableDateTimeFunction<String[], MutableDateTime>

A MutableDateTime is created from the given String array.

The valid input String[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strFieldArrayToMutableDateTimeFunction<String[], MutableDateTime>Chronology chronology

A MutableDateTime is created from the given String array. The result will be created with the given Chronology

The valid input String[] are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strFieldCollectionToMutableDateTimeFunction<Collection<String>, MutableDateTime>

A MutableDateTime is created from the given String Collection.

The valid input Collection<String> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strFieldCollectionToMutableDateTimeFunction<Collection<String>, MutableDateTime>Chronology chronology

A MutableDateTime is created from the given String Collection. The result will be created with the given Chronology

The valid input Collection<String> are:

  • year (month and day will be set to 1)
  • year, month (day will be set to 1)
  • year, month, day
strToMutableDateTimeFunction<String, MutableDateTime>String pattern

It converts the input String into a MutableDateTime using the given pattern parameter. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
DateTimeZone dateTimeZone

It converts the input String into a MutableDateTime using the given pattern parameter and with the given DateTimeZone. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
Chronology chronology

It converts the input String into a MutableDateTime using the given pattern parameter and with the given Chronology. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
Locale locale

It converts the input String into a MutableDateTime using the given pattern and Locale parameters

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
String locale

It converts the given String into a MutableDateTime using the given pattern and Locale parameters

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
Locale locale
DateTimeZone dateTimeZone

It converts the given String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime is configured with the given DateTimeZone

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
String locale
DateTimeZone dateTimeZone

It converts the given String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime is configured with the given DateTimeZone

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
Locale locale
Chronology chronology

It converts the input String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime will be created with the given Chronology

strToMutableDateTimeFunction<String, MutableDateTime>String pattern
String locale
Chronology chronology

It converts the input String into a MutableDateTime using the given pattern and Locale parameters. The MutableDateTime will be created with the given Chronology

timestampToMutableDateTimeFunction<Timestamp, MutableDateTime>

The input Timestamp is converted into a MutableDateTime

timestampToMutableDateTimeFunction<Timestamp, MutableDateTime>DateTimeZone dateTimeZone

The input Timestamp is converted into a MutableDateTime in the given DateTimeZone

timestampToMutableDateTimeFunction<Timestamp, MutableDateTime>Chronology chronology

The input Timestamp is converted into a MutableDateTime with the given Chronology