Interface DateFormatterFactory
- All Known Implementing Classes:
DateFormatterFactoryImpl
public interface DateFormatterFactory
Constructs
DateFormatter
instances for use throughout Confluence core.-
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.
-
Method Details
-
createForUser
DateFormatter createForUser()Obtains a DateFormatter suitable for the current users timezone.NOTE: user locale settings *are* respected, but DateFormatter itself handles that.
-
createGlobal
DateFormatter createGlobal()Obtains a DateFormatter that uses the instances default timezone.- See Also:
-
TimeZoneManager.getDefaultTimeZone()
-
createFriendlyForUser
Creates a FriendlyDateFormatter for the current user. -
createFriendlyForUser
FriendlyDateFormatter createFriendlyForUser()Creates a FriendlyDateFormatter for the current user, with the current date/time used for "now".
-