Package libcore.icu

Class DateUtilsBridge


  • public final class DateUtilsBridge
    extends Object
    Common methods and constants for the various ICU formatters used to support android.text.format.DateUtils.
    • Constructor Detail

      • DateUtilsBridge

        public DateUtilsBridge()
    • Method Detail

      • icuTimeZone

        public static TimeZone icuTimeZone​(TimeZone tz)
        Creates an immutable ICU timezone backed by the specified libcore timezone data. At the time of writing the libcore implementation is faster but restricted to 1902 - 2038. Callers must not modify the tz after calling this method.
      • createIcuCalendar

        public static Calendar createIcuCalendar​(TimeZone icuTimeZone,
                                                 ULocale icuLocale,
                                                 long timeInMillis)
      • toSkeleton

        public static String toSkeleton​(Calendar calendar,
                                        int flags)