Udostępnij za pośrednictwem


Time.IsEpoch(Time) Method

Definition

Returns true if the instant of the supplied time would be for the Gregorian calendar date January 1, 1970 <em>for a user observing UTC </em>, i.

[Android.Runtime.Register("isEpoch", "(Landroid/text/format/Time;)Z", "")]
public static bool IsEpoch (Android.Text.Format.Time? time);
[<Android.Runtime.Register("isEpoch", "(Landroid/text/format/Time;)Z", "")>]
static member IsEpoch : Android.Text.Format.Time -> bool

Parameters

time
Time

the time to test

Returns

true if epoch.

Attributes

Remarks

Returns true if the instant of the supplied time would be for the Gregorian calendar date January 1, 1970 <em>for a user observing UTC </em>, i.e. the timezone of the time object is ignored.

See #getJulianDay(long, long) for how to determine the Julian day for the timezone of the time object.

This method can return an incorrect answer when the date / time fields have been set to a local time that contradicts the available timezone information.

Java documentation for android.text.format.Time.isEpoch(android.text.format.Time).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to