Class DateFormatterFactoryImpl
java.lang.Object
com.atlassian.confluence.core.datetime.DateFormatterFactoryImpl
- All Implemented Interfaces:
DateFormatterFactory
-
Constructor Summary
ConstructorsConstructorDescriptionDateFormatterFactoryImpl
(FormatSettingsManager formatSettingsManager, LocaleManager localeManager, com.atlassian.sal.api.timezone.TimeZoneManager timeZoneManager) -
Method Summary
Modifier and TypeMethodDescriptionObtains a DateFormatter suitable for the current users timezone.Creates a FriendlyDateFormatter for the current user, with the current date/time used for "now".Creates a FriendlyDateFormatter for the current user.Obtains a DateFormatter that uses the instances default timezone.
-
Constructor Details
-
DateFormatterFactoryImpl
public DateFormatterFactoryImpl(FormatSettingsManager formatSettingsManager, LocaleManager localeManager, com.atlassian.sal.api.timezone.TimeZoneManager timeZoneManager)
-
-
Method Details
-
createForUser
Description copied from interface:DateFormatterFactory
Obtains a DateFormatter suitable for the current users timezone.NOTE: user locale settings *are* respected, but DateFormatter itself handles that.
- Specified by:
createForUser
in interfaceDateFormatterFactory
-
createGlobal
Description copied from interface:DateFormatterFactory
Obtains a DateFormatter that uses the instances default timezone.- Specified by:
createGlobal
in interfaceDateFormatterFactory
- See Also:
-
TimeZoneManager.getDefaultTimeZone()
-
createFriendlyForUser
Description copied from interface:DateFormatterFactory
Creates a FriendlyDateFormatter for the current user.- Specified by:
createFriendlyForUser
in interfaceDateFormatterFactory
-
createFriendlyForUser
Description copied from interface:DateFormatterFactory
Creates a FriendlyDateFormatter for the current user, with the current date/time used for "now".- Specified by:
createFriendlyForUser
in interfaceDateFormatterFactory
-