Android.Text.Format.Time.GetJulianDay Method
Computes the Julian day number for a point in time in a particular timezone.

Syntax

[Android.Runtime.Register("getJulianDay", "(JJ)I", "")]
public static int GetJulianDay (long millis, long gmtoff)

Parameters

millis
the time in UTC milliseconds
gmtoff
the offset from UTC in seconds

Returns

Documentation for this section has not yet been entered.

Remarks

Computes the Julian day number for a point in time in a particular timezone. The Julian day for a given date is the same for every timezone. For example, the Julian day for July 1, 2008 is 2454649.

Callers must pass the time in UTC millisecond (as can be returned by Time.ToMillis(bool) or Time.Normalize(bool)) and the offset from UTC of the timezone in seconds (as might be in Time.Gmtoff).

The Julian day is useful for testing if two events occur on the same calendar date and for determining the relative time of an event from the present ("yesterday", "3 days ago", etc.).

[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