public interface DateFormatterFactory
DateFormatter
instances for use throughout Confluence core.Modifier and Type | Method and 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.
|
DateFormatter createForUser()
NOTE: user locale settings *are* respected, but DateFormatter itself handles that.
DateFormatter createGlobal()
com.atlassian.sal.api.timezone.TimeZoneManager#getDefaultTimeZone()}
FriendlyDateFormatter createFriendlyForUser(Date now)
FriendlyDateFormatter createFriendlyForUser()
Copyright © 2003–2020 Atlassian. All rights reserved.