Android.Text.Format.Time Members

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

See Also: Inherited members from Java.Lang.Object

Public Constructors

Construct a Time object in the default timezone.
A copy constructor.
Construct a Time object in the timezone named by the string argument "timezone".

Protected Constructors

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

Public Fields

const
EpochJulianDayint (2440588). The Julian day of the epoch, that is, January 1, 1970 on the Gregorian calendar.
const
TimezoneUtcstring.

Public Properties

AllDaybool. True if this is an allDay event.
[read-only]
static
CurrentTimezonestring. Returns the timezone string that is currently set for the device.
Gmtofflong. Offset in seconds from UTC including any DST offset.
Hourint. Hour of day [0-23]
IsDstint. This time is in daylight savings time.
Minuteint. Minute [0-59]
Monthint. Month [0-11]
MonthDayint. Day of month [1-31]
Secondint. Seconds [0-61] (2 leap seconds allowed)
Timezonestring. The timezone for this Time.
WeekDayDayOfWeek. Day of week [0-6]
[read-only]
WeekNumberint. Computes the week number according to ISO 8601.
Yearint. Year.
YearDayint. Day of year [0-365]

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

After(Time) : bool
Returns true if the time represented by this Time object occurs after the given time.
Before(Time) : bool
Returns true if the time represented by this Time object occurs before the given time.
Clear(string)
Clears all values, setting the timezone to the given timezone.
static
Compare(Time, Time) : int
Compare two Time objects and return a negative number if a is less than b, a positive number if a is greater than b, or 0 if they are equal.
Format(string) : string
Print the current value given the format string provided.
Format2445() : string
Format according to RFC 2445 DATE-TIME type.
Format3339(bool) : string
Return a string in the RFC 3339 format.
GetActualMaximum(TimeFormatValues) : int
Return the maximum possible value for the given field given the value of the other fields.
static
GetJulianDay(long, long) : int
Computes the Julian day number for a point in time in a particular timezone.
static
GetJulianMondayFromWeeksSinceEpoch(int) : int
Takes a number of weeks since the epoch and calculates the Julian day of the Monday for that week.
static
GetWeeksSinceEpochFromJulianDay(int, int) : int
Returns the week since Time.EpochJulianDay (Jan 1, 1970) adjusted for first day of week.
static
IsEpoch(Time) : bool
Returns true if the day of the given time is the epoch on the Julian Calendar (January 1, 1970 on the Gregorian calendar).
Normalize(bool) : long
Ensures the values in each field are in range.
Parse(string) : bool
Parses a date-time string in either the RFC 2445 format or an abbreviated format that does not include the "time" field.
Parse3339(string) : bool
Parse a time in RFC 3339 format.
Set(Time)
Copy the value of that to this Time object.
Set(long)
Sets the fields in this Time object given the UTC milliseconds.
Set(int, int, int)
Sets the date from the given fields.
Set(int, int, int, int, int, int)
Sets the fields.
SetJulianDay(int) : long
SetToNow()
Sets the time of the given Time object to the current time.
SwitchTimezone(string)
Convert this time object so the time represented remains the same, but is instead located in a different timezone.
ToMillis(bool) : long
Converts this time to milliseconds.