Share via


Time.GetWeeksSinceEpochFromJulianDay(Int32, Int32) Method

Definition

Returns the week since #EPOCH_JULIAN_DAY (Jan 1, 1970) adjusted for first day of week.

[Android.Runtime.Register("getWeeksSinceEpochFromJulianDay", "(II)I", "")]
public static int GetWeeksSinceEpochFromJulianDay (int julianDay, int firstDayOfWeek);
[<Android.Runtime.Register("getWeeksSinceEpochFromJulianDay", "(II)I", "")>]
static member GetWeeksSinceEpochFromJulianDay : int * int -> int

Parameters

julianDay
Int32

The julian day to calculate the week number for

firstDayOfWeek
Int32

Which week day is the first day of the week, see #SUNDAY

Returns

Weeks since the epoch

Attributes

Remarks

Returns the week since #EPOCH_JULIAN_DAY (Jan 1, 1970) adjusted for first day of week. This takes a julian day and the week start day and calculates which week since #EPOCH_JULIAN_DAY that day occurs in, starting at 0. *Do not* use this to compute the ISO week number for the year.

Java documentation for android.text.format.Time.getWeeksSinceEpochFromJulianDay(int, int).

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