Interface DateFormatterFactory

    • 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:
      • 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".