Interface DateFormatterFactory
-
- All Known Implementing Classes:
DateFormatterFactoryImpl
public interface DateFormatterFactory
ConstructsDateFormatter
instances for use throughout Confluence core.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DateFormatter
createForUser()
Obtains a DateFormatter suitable for the current users timezone.FriendlyDateFormatter
createFriendlyForUser()
Creates a FriendlyDateFormatter for the current user, with the current date/time used for "now".FriendlyDateFormatter
createFriendlyForUser(Date now)
Creates a FriendlyDateFormatter for the current user.DateFormatter
createGlobal()
Obtains a DateFormatter that uses the instances default timezone.
-
-
-
Method Detail
-
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
FriendlyDateFormatter createFriendlyForUser(Date now)
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".
-
-