Functions: FnDateMidnight

1. Overview

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

2. Functions

Function nameTypeParamsDescription
calendarToDateMidnightFunction<T, DateMidnight>

It converts a Calendar into a DateMidnight

calendarToDateMidnightFunction<T, DateMidnight>DateTimeZone dateTimeZone

It converts a Calendar into a DateMidnight in the given DateTimeZone

calendarToDateMidnightFunction<T, DateMidnight>Chronology chronology

It converts a Calendar into a DateMidnight with the given Chronology

dateToDateMidnightFunction<T, DateMidnight>

The input Date is converted into a DateMidnight

dateToDateMidnightFunction<T, DateMidnight>DateTimeZone dateTimeZone

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

dateToDateMidnightFunction<T, DateMidnight>Chronology chronology

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

integerFieldArrayToDateMidnightFunction<Integer[], DateMidnight>

A DateMidnight is created from the input 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
integerFieldArrayToDateMidnightFunction<Integer[], DateMidnight>Chronology chronology

A DateMidnight 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
integerFieldCollectionToDateMidnightFunction<Collection<Integer>, DateMidnight>

A DateMidnight 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
integerFieldCollectionToDateMidnightFunction<Collection<Integer>, DateMidnight>Chronology chronology

A DateMidnight 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
longToDateMidnightFunction<Long, DateMidnight>

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

longToDateMidnightFunction<Long, DateMidnight>DateTimeZone dateTimeZone

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

longToDateMidnightFunction<Long, DateMidnight>Chronology chronology

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

strFieldArrayToDateMidnightFunction<String[], DateMidnight>

A DateMidnight 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
strFieldArrayToDateMidnightFunction<String[], DateMidnight>Chronology chronology

A DateMidnight is created from the input 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
strFieldCollectionToDateMidnightFunction<Collection<String>, DateMidnight>

A DateMidnight is created from the input 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
strFieldCollectionToDateMidnightFunction<Collection<String>, DateMidnight>Chronology chronology

A DateMidnight is created from the input 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
strToDateMidnightFunction<String, DateMidnight>String pattern

It converts the input String into a DateMidnight 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

strToDateMidnightFunction<String, DateMidnight>String pattern
DateTimeZone dateTimeZone

It converts the input String into a DateMidnight 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

strToDateMidnightFunction<String, DateMidnight>String pattern
Chronology chronology

It converts the input String into a DateMidnight 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

strToDateMidnightFunction<String, DateMidnight>String pattern
Locale locale

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

strToDateMidnightFunction<String, DateMidnight>String pattern
String locale

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

strToDateMidnightFunction<String, DateMidnight>String pattern
Locale locale
DateTimeZone dateTimeZone

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

strToDateMidnightFunction<String, DateMidnight>String pattern
String locale
DateTimeZone dateTimeZone

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

strToDateMidnightFunction<String, DateMidnight>String pattern
Locale locale
Chronology chronology

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

strToDateMidnightFunction<String, DateMidnight>String pattern
String locale
Chronology chronology

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

timestampToDateMidnightFunction<Timestamp, DateMidnight>

The input Timestamp is converted into a DateMidnight

timestampToDateMidnightFunction<Timestamp, DateMidnight>DateTimeZone dateTimeZone

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

timestampToDateMidnightFunction<Timestamp, DateMidnight>Chronology chronology

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