FnLocalTime is a function hub class containing a lot of static methods to convert from various input objects to LocalTime. Those static methods return functions whose output is LocalTime and whose input can be Calendar, Date, Integer list and Timestamp among others.
Function name | Type | Params | Description |
---|---|---|---|
calendarToLocalTime | Function<T, LocalTime> | It converts a Calendar into a LocalTime | |
calendarToLocalTime | Function<T, LocalTime> | DateTimeZone dateTimeZone | It converts a Calendar into a LocalTime in the given DateTimeZone |
calendarToLocalTime | Function<T, LocalTime> | Chronology chronology | It converts a Calendar into a LocalTime with the given Chronology |
dateToLocalTime | Function<T, LocalTime> | The given Date is converted into a LocalTime | |
dateToLocalTime | Function<T, LocalTime> | DateTimeZone dateTimeZone | The given Date is converted into a LocalTime configured with the given DateTimeZone |
dateToLocalTime | Function<T, LocalTime> | Chronology chronology | The given Date is converted into a LocalTime with the given Chronology |
integerFieldArrayToLocalTime | Function<Integer[], LocalTime> | A LocalTime is created from the given Integer Array. The valid input Integer[] represent:
| |
integerFieldArrayToLocalTime | Function<Integer[], LocalTime> | Chronology chronology | A LocalTime is created from the given Integer array with the specified Chronology. The valid input Integer[] represent:
|
integerFieldCollectionToLocalTime | Function<Collection<Integer>, LocalTime> | A LocalTime is created from the given Integer Collection. The valid input Collection<Integer> represent:
| |
integerFieldCollectionToLocalTime | Function<Collection<Integer>, LocalTime> | Chronology chronology | A LocalTime is created from the given Integer Collection with the specified Chronology. The valid input Collection<Integer> represent:
|
longToLocalTime | Function<Long, LocalTime> | The given long representing the time in milliseconds is converted into a LocalTime | |
longToLocalTime | Function<Long, LocalTime> | DateTimeZone dateTimeZone | The given long representing the time in milliseconds is converted into a LocalTime in the given DateTimeZone |
longToLocalTime | Function<Long, LocalTime> | Chronology chronology | The given long representing the time in milliseconds is converted into a LocalTime with the given Chronology |
strFieldArrayToLocalTime | Function<String[], LocalTime> | A LocalTime is created from the given String array. The valid input String[] represent:
| |
strFieldArrayToLocalTime | Function<String[], LocalTime> | Chronology chronology | A LocalTime is created from the given String array with the specified Chronology The valid input String[] represent:
|
strFieldCollectionToLocalTime | Function<Collection<String>, LocalTime> | A LocalTime is created from the given String Collection. The valid input Collection<String> represent:
| |
strFieldCollectionToLocalTime | Function<Collection<String>, LocalTime> | Chronology chronology | A LocalTime is created from the given String Collection with the specified Chronology The valid input Collection<String> represent:
|
strToLocalTime | Function<String, LocalTime> | String pattern | It converts the given String into a LocalTime 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 |
strToLocalTime | Function<String, LocalTime> | String pattern DateTimeZone dateTimeZone | It converts the given String into a LocalTime using the given pattern parameter and with the specified DateTimeZone. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead |
strToLocalTime | Function<String, LocalTime> | String pattern Chronology chronology | It converts the given String into a LocalTime using the given pattern parameter with the specified Chronology. If the pattern includes either, the name of the month or day of week, a conversion accepting a Locale must be used instead |
strToLocalTime | Function<String, LocalTime> | String pattern Locale locale | It converts the given String into a LocalTime using the given pattern and Locale parameters |
strToLocalTime | Function<String, LocalTime> | String pattern String locale | It converts the given String into a LocalTime using the given pattern and Locale parameters |
strToLocalTime | Function<String, LocalTime> | String pattern Locale locale DateTimeZone dateTimeZone | It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime is configured with the given DateTimeZone |
strToLocalTime | Function<String, LocalTime> | String pattern String locale DateTimeZone dateTimeZone | It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime is configured with the given DateTimeZone |
strToLocalTime | Function<String, LocalTime> | String pattern Locale locale Chronology chronology | It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime will be created with the specified Chronology |
strToLocalTime | Function<String, LocalTime> | String pattern String locale Chronology chronology | It converts the given String into a LocalTime using the given pattern and Locale parameters. The DateTime will be created with the specified Chronology |
timestampToLocalTime | Function<Timestamp, LocalTime> | The given Timestamp is converted into a LocalTime | |
timestampToLocalTime | Function<Timestamp, LocalTime> | DateTimeZone dateTimeZone | The given Timestamp is converted into a LocalTime in the given DateTimeZone |
timestampToLocalTime | Function<Timestamp, LocalTime> | Chronology chronology | The given Timestamp is converted into a LocalTime with the given Chronology |