patternFormat
Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX
type. A convenience fixedPatternFormat method exists to default to this behaviour.
Parameters
The pattern to apply.
The KalugaTimeZone for which the date should be formatted. Defaults to KalugaTimeZone.current.
The KalugaLocale for which the date should be formatted. Defaults to KalugaLocale.defaultLocale.
Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX
type. A convenience fixedPatternFormat method exists to default to this behaviour.
Parameters
The pattern to apply.
The KalugaTimeZone for which the date should be formatted. Defaults to KalugaTimeZone.current.
The KalugaLocale for which the date should be formatted. Defaults to KalugaLocale.defaultLocale.
Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX
type. A convenience fixedPatternFormat method exists to default to this behaviour.
Parameters
The pattern to apply.
The KalugaTimeZone for which the date should be formatted. Defaults to KalugaTimeZone.current.
The KalugaLocale for which the date should be formatted. Defaults to KalugaLocale.defaultLocale.
Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX
type. A convenience fixedPatternFormat method exists to default to this behaviour.
Parameters
The pattern to apply.
The KalugaTimeZone for which the date should be formatted. Defaults to KalugaTimeZone.current.
The KalugaLocale for which the date should be formatted. Defaults to KalugaLocale.defaultLocale.
Creates a KalugaDateFormatter using a custom Date format pattern. On iOS some user settings may take precedent over the format (i.e. using 12 hour clock). To prevent this, ensure that the provided locale is of a POSIX
type. A convenience fixedPatternFormat method exists to default to this behaviour.
Parameters
The pattern to apply.
The KalugaTimeZone for which the date should be formatted. Defaults to KalugaTimeZone.current.
The KalugaLocale for which the date should be formatted. Defaults to KalugaLocale.defaultLocale.