See Also:
Time Members
Syntax
[Android.Runtime.Register("android/text/format/Time", DoNotGenerateAcw=true)]
public class
Time :
Java.Lang.ObjectRemarks
An alternative to the Java.Util.Calendar and
Java.Util.GregorianCalendar classes. An instance of the Time class represents
a moment in time, specified with second precision. It is modelled after
struct tm. This class is not thread-safe and does not consider leap seconds.
This class has a number of issues and it is recommended that
Java.Util.GregorianCalendar is used instead.
Known issues:
- For historical reasons when performing time calculations all arithmetic currently takes
place using 32-bit integers. This limits the reliable time range representable from 1902
until 2037.See the wikipedia article on the
for details.
Do not rely on this behavior; it may change in the future.
- Calling Time.SwitchTimezone(string) on a date that cannot exist, such as a wall time
that was skipped due to a DST transition, will result in a date in 1969 (i.e. -1, or 1 second
before 1st Jan 1970 UTC).
- Much of the formatting / parsing assumes ASCII text and is therefore not suitable for
use with non-ASCII scripts.
[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