Class DateFormatterFactoryImpl
- java.lang.Object
 - 
- com.atlassian.confluence.core.datetime.DateFormatterFactoryImpl
 
 
- 
- All Implemented Interfaces:
 DateFormatterFactory
public class DateFormatterFactoryImpl extends Object implements DateFormatterFactory
 
- 
- 
Constructor Summary
Constructors Constructor Description DateFormatterFactoryImpl(FormatSettingsManager formatSettingsManager, LocaleManager localeManager, com.atlassian.sal.api.timezone.TimeZoneManager timeZoneManager) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateFormattercreateForUser()Obtains a DateFormatter suitable for the current users timezone.FriendlyDateFormattercreateFriendlyForUser()Creates a FriendlyDateFormatter for the current user, with the current date/time used for "now".FriendlyDateFormattercreateFriendlyForUser(Date now)Creates a FriendlyDateFormatter for the current user.DateFormattercreateGlobal()Obtains a DateFormatter that uses the instances default timezone. 
 - 
 
- 
- 
Constructor Detail
- 
DateFormatterFactoryImpl
public DateFormatterFactoryImpl(FormatSettingsManager formatSettingsManager, LocaleManager localeManager, com.atlassian.sal.api.timezone.TimeZoneManager timeZoneManager)
 
 - 
 
- 
Method Detail
- 
createForUser
public DateFormatter createForUser()
Description copied from interface:DateFormatterFactoryObtains a DateFormatter suitable for the current users timezone.NOTE: user locale settings *are* respected, but DateFormatter itself handles that.
- Specified by:
 createForUserin interfaceDateFormatterFactory
 
- 
createGlobal
public DateFormatter createGlobal()
Description copied from interface:DateFormatterFactoryObtains a DateFormatter that uses the instances default timezone.- Specified by:
 createGlobalin interfaceDateFormatterFactory- See Also:
 TimeZoneManager.getDefaultTimeZone()
 
- 
createFriendlyForUser
public FriendlyDateFormatter createFriendlyForUser(Date now)
Description copied from interface:DateFormatterFactoryCreates a FriendlyDateFormatter for the current user.- Specified by:
 createFriendlyForUserin interfaceDateFormatterFactory
 
- 
createFriendlyForUser
public FriendlyDateFormatter createFriendlyForUser()
Description copied from interface:DateFormatterFactoryCreates a FriendlyDateFormatter for the current user, with the current date/time used for "now".- Specified by:
 createFriendlyForUserin interfaceDateFormatterFactory
 
 - 
 
 -