DateFormat 类

定义

[Android.Runtime.Register("android/icu/text/DateFormat", ApiSince=24, DoNotGenerateAcw=true)]
public abstract class DateFormat : Android.Icu.Text.UFormat
[<Android.Runtime.Register("android/icu/text/DateFormat", ApiSince=24, DoNotGenerateAcw=true)>]
type DateFormat = class
    inherit UFormat
继承
派生
属性

注解

Android 平台文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

构造函数

DateFormat()
DateFormat(IntPtr, JniHandleOwnership)

字段

AbbrGenericTz
AbbrMonth
AbbrMonthDay
AbbrMonthWeekdayDay
AbbrQuarter
AbbrSpecificTz
AbbrUtcTz
AbbrWeekday
AmPmField
AmPmMidnightNoonField
DateField
Day
DayOfWeekField
DayOfWeekInMonthField
DayOfYearField
Default
DowLocalField
EraField
ExtendedYearField
FlexibleDayPeriodField
FractionalSecondField
Full
GenericTz
Hour
Hour0Field
Hour1Field
Hour24
Hour24Minute
Hour24MinuteSecond
HourMinute
HourMinuteSecond
HourOfDay0Field
HourOfDay1Field
JulianDayField
LocationTz
Long
Medium
MillisecondField
MillisecondsInDayField
Minute
MinuteField
MinuteSecond
Month
MonthDay
MonthField
MonthWeekdayDay
None
NumMonth
NumMonthDay
NumMonthWeekdayDay
Quarter
QuarterField
Relative
RelativeDefault
RelativeFull
RelativeLong
RelativeMedium
RelativeShort
Second
SecondField
Short
SpecificTz
StandaloneDayField
StandaloneMonthField
StandaloneQuarterField
TimezoneField
TimezoneGenericField
TimezoneIsoField
TimezoneIsoLocalField
TimezoneLocalizedGmtOffsetField
TimezoneRfcField
TimezoneSpecialField
Weekday
WeekOfMonthField
WeekOfYearField
Year
YearAbbrMonth
YearAbbrMonthDay
YearAbbrMonthWeekdayDay
YearAbbrQuarter
YearField
YearMonth
YearMonthDay
YearMonthWeekdayDay
YearNameField
YearNumMonth
YearNumMonthDay
YearNumMonthWeekdayDay
YearQuarter
YearWoyField

属性

Calendar
CalendarLenient
Class

返回此 Object的运行时类。

(继承自 Object)
DateInstance
DateTimeInstance
Handle

基础 Android 实例的句柄。

(继承自 Object)
Instance
JniIdentityHashCode (继承自 Object)
JniPeerMembers
Lenient
NumberFormat
PeerReference (继承自 Object)
ThresholdClass
ThresholdType
TimeInstance
TimeZone

方法

Clone()

创建并返回此对象的副本。

(继承自 _Format)
Dispose() (继承自 Object)
Dispose(Boolean) (继承自 Object)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
Format(Calendar, StringBuffer, FieldPosition)
Format(Date, StringBuffer, FieldPosition)
Format(Date)
Format(Object, StringBuffer, FieldPosition)
Format(Object)

设置对象的格式以生成字符串。

(继承自 _Format)
FormatToCharacterIterator(Object)

设置生成 . 的对象 AttributedCharacterIterator的格式。

(继承自 _Format)
GetAvailableLocales()
GetBooleanAttribute(DateFormat+BooleanAttribute)
GetContext(DisplayContext+Type)
GetDateInstance(Calendar, DateFormatStyle, Locale)
GetDateInstance(Calendar, DateFormatStyle, ULocale)
GetDateInstance(Calendar, DateFormatStyle)
GetDateInstance(DateFormatStyle, Locale)
GetDateInstance(DateFormatStyle, ULocale)
GetDateInstance(DateFormatStyle)
GetDateTimeInstance(Calendar, DateFormatStyle, Int32, Locale)
GetDateTimeInstance(Calendar, DateFormatStyle, Int32, ULocale)
GetDateTimeInstance(Calendar, DateFormatStyle, Int32)
GetDateTimeInstance(DateFormatStyle, Int32, Locale)
GetDateTimeInstance(DateFormatStyle, Int32, ULocale)
GetDateTimeInstance(DateFormatStyle, Int32)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
GetInstance(Calendar, Locale)
GetInstance(Calendar, ULocale)
GetInstance(Calendar)
GetInstanceForSkeleton(Calendar, String, Locale)
GetInstanceForSkeleton(Calendar, String, ULocale)
GetInstanceForSkeleton(String, Locale)
GetInstanceForSkeleton(String, ULocale)
GetInstanceForSkeleton(String)
GetPatternInstance(Calendar, String, Locale)
GetPatternInstance(Calendar, String, ULocale)
GetPatternInstance(String, Locale)
GetPatternInstance(String, ULocale)
GetPatternInstance(String)
GetTimeInstance(Calendar, DateFormatStyle, Locale)
GetTimeInstance(Calendar, DateFormatStyle, ULocale)
GetTimeInstance(Calendar, DateFormatStyle)
GetTimeInstance(DateFormatStyle, Locale)
GetTimeInstance(DateFormatStyle, ULocale)
GetTimeInstance(DateFormatStyle)
JavaFinalize()

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
Parse(String, Calendar, ParsePosition)
Parse(String, ParsePosition)
Parse(String)
ParseObject(String, ParsePosition)
ParseObject(String)

分析给定字符串开头的文本以生成对象。

(继承自 _Format)
SetBooleanAttribute(DateFormat+BooleanAttribute, Boolean)
SetContext(DisplayContext)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
ToArray<T>() (继承自 Object)
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime() (继承自 Object)
Wait()

使当前线程等待,直到唤醒它,通常是通过 em 通知/em> 或 <em>interrupted</em>。<><

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

IJavaPeerable.Disposed() (继承自 Object)
IJavaPeerable.DisposeUnlessReferenced() (继承自 Object)
IJavaPeerable.Finalized() (继承自 Object)
IJavaPeerable.JniManagedPeerState (继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

适用于