Android.Text.Format.DateUtils Members

The members of Android.Text.Format.DateUtils are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
AbbrevMonthFormatstring. This is not actually a useful month name in all locales.
const
AbbrevWeekdayFormatstring.
const
DayInMillislong (86400000).
const
HourInMillislong (3600000).
const
HourMinute24string. This is not actually the preferred 24-hour date format in all locales.
const
MinuteInMillislong (60000).
const
MonthDayFormatstring.
const
MonthFormatstring.
const
NumericMonthFormatstring.
const
SecondInMillislong (1000).
const
WeekdayFormatstring.
const
WeekInMillislong (604800000).
const
YearFormatstring.
const
YearFormatTwoDigitsstring.
const
YearInMillislong (31449600000). This constant is actually the length of 364 days, not of a year!

Public Properties

[read-only]
static
SameMonthTableIList<int>.
[read-only]
static
SameYearTableIList<int>.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
FormatDateRange(Android.Content.Context, long, long, FormatStyleFlags) : string
Formats a date or a time range according to the local conventions.
static
FormatDateRange(Android.Content.Context, Java.Util.Formatter, long, long, FormatStyleFlags) : Java.Util.Formatter
Formats a date or a time range according to the local conventions.
static
FormatDateRange(Android.Content.Context, Java.Util.Formatter, long, long, FormatStyleFlags, string) : Java.Util.Formatter
Formats a date or a time range according to the local conventions.
static
FormatDateTime(Android.Content.Context, long, FormatStyleFlags) : string
Formats a date or a time according to the local conventions.
static
FormatElapsedTime(long) : string
Formats an elapsed time in the form "MM:SS" or "H:MM:SS" for display on the call-in-progress screen.
static
FormatElapsedTime(Java.Lang.StringBuilder, long) : string
Formats an elapsed time in a format like "MM:SS" or "H:MM:SS" (using a form suited to the current locale), similar to that used on the call-in-progress screen.
static
FormatSameDayTime(long, long, AbbreviationLength, AbbreviationLength) : string
Documentation for this section has not yet been entered.
static
FormatSameDayTimeFormatted(long, long, AbbreviationLength, AbbreviationLength) : Java.Lang.ICharSequence
Format a date / time such that if the then is on the same day as now, it shows just the time and if it's a different day, it shows just the date.
static
GetAMPMString(int) : string
Return a localized string for AM or PM.
static
GetDayOfWeekString(int, AbbreviationLength) : string
Return a string for the day of the week.
static
GetMonthString(int, AbbreviationLength) : string
Return a localized string for the month of the year.
static
GetRelativeDateTimeString(Android.Content.Context, long, long, long, FormatStyleFlags) : string
Documentation for this section has not yet been entered.
static
GetRelativeDateTimeStringFormatted(Android.Content.Context, long, long, long, FormatStyleFlags) : Java.Lang.ICharSequence
Return string describing the elapsed time since startTime formatted like "[relative time/date], [time]".
static
GetRelativeTimeSpanString(long) : string
Documentation for this section has not yet been entered.
static
GetRelativeTimeSpanString(Android.Content.Context, long) : string
Documentation for this section has not yet been entered.
static
GetRelativeTimeSpanString(Android.Content.Context, long, bool) : string
Documentation for this section has not yet been entered.
static
GetRelativeTimeSpanString(long, long, long) : string
Documentation for this section has not yet been entered.
static
GetRelativeTimeSpanString(long, long, long, FormatStyleFlags) : string
Documentation for this section has not yet been entered.
static
GetRelativeTimeSpanStringFormatted(long) : Java.Lang.ICharSequence
Returns a string describing the elapsed time since startTime.
static
GetRelativeTimeSpanStringFormatted(Android.Content.Context, long) : Java.Lang.ICharSequence
Convenience function to return relative time string without preposition.
static
GetRelativeTimeSpanStringFormatted(Android.Content.Context, long, bool) : Java.Lang.ICharSequence
static
GetRelativeTimeSpanStringFormatted(long, long, long) : Java.Lang.ICharSequence
Returns a string describing 'time' as a time relative to 'now'.
static
GetRelativeTimeSpanStringFormatted(long, long, long, FormatStyleFlags) : Java.Lang.ICharSequence
Returns a string describing 'time' as a time relative to 'now'.
static
IsToday(long) : bool