Android.Text.Format.Time.Parse3339 Method
Parse a time in RFC 3339 format.

Syntax

[Android.Runtime.Register("parse3339", "(Ljava/lang/String;)Z", "GetParse3339_Ljava_lang_String_Handler")]
public virtual bool Parse3339 (string s)

Parameters

s
the string to parse

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.Util.TimeFormatExceptionif s cannot be parsed.

Remarks

Parse a time in RFC 3339 format. This method also parses simple dates (that is, strings that contain no time or time offset). For example, all of the following strings are valid:

  • "2008-10-13T16:00:00.000Z"
  • "2008-10-13T16:00:00.000+07:00"
  • "2008-10-13T16:00:00.000-07:00"
  • "2008-10-13"

If the string contains a time and time offset, then the time offset will be used to convert the time value to UTC.

If the given string contains just a date (with no time field), then the Time.AllDay field is set to true and the Time.Hour, Time.Minute, and Time.Second fields are set to zero.

Returns true if the resulting time value is in UTC time.

[Android Documentation]

Requirements

Namespace: Android.Text.Format
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3