Local Time Localizer
Localizer for LocalTime.
Create once and re-use for localizing multiple values with the same options. Use LocalTime.localize for one-off localizations.
Note that only the hour is required when using TimeComponents.Local, all others are optional and can be omitted if so desired. In case of a "gap", the underlying implementation will try return a string containing only the required fields, which can be odd or unexpected in some locales. One example of such case is the last example below.
Example:
9:05 PM9:05:08 PM21:0521:05:08.1239 at night9 PM (second: 8.1)
Localizer for LocalTime.
Create once and re-use for localizing multiple values with the same options. Use LocalTime.localize for one-off localizations.
Note that only the hour is required when using TimeComponents.Local, all others are optional and can be omitted if so desired. In case of a "gap", the underlying implementation will try return a string containing only the required fields, which can be odd or unexpected in some locales. One example of such case is the last example below.
Example:
9:05 PM9:05:08 PM21:0521:05:08.1239 at night9 PM (second: 8.1)
Localizer for LocalTime.
Create once and re-use for localizing multiple values with the same options. Use LocalTime.localize for one-off localizations.
Note that only the hour is required when using TimeComponents.Local, all others are optional and can be omitted if so desired. In case of a "gap", the underlying implementation will try return a string containing only the required fields, which can be odd or unexpected in some locales. One example of such case is the last example below.
Example:
9:05 PM9:05:08 PM21:0521:05:08.1239 at night9 PM (second: 8.1)