SimpleTimeZone.GetOffset(Int32, Int32, Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the difference in milliseconds between local time and UTC, taking into account both the raw offset and the effect of daylight saving, for the specified date and time.
[Android.Runtime.Register("getOffset", "(IIIIII)I", "GetGetOffset_IIIIIIHandler")]
public override int GetOffset (int era, int year, int month, int day, int dayOfWeek, int millis);
[<Android.Runtime.Register("getOffset", "(IIIIII)I", "GetGetOffset_IIIIIIHandler")>]
override this.GetOffset : int * int * int * int * int * int -> int
Parameters
- era
- Int32
The era of the given date.
- year
- Int32
The year in the given date.
- month
- Int32
The month in the given date. Month is 0-based. e.g., 0 for January.
- day
- Int32
The day-in-month of the given date.
- dayOfWeek
- Int32
The day-of-week of the given date.
- millis
- Int32
The milliseconds in day in <em>standard</em> local time.
Returns
The milliseconds to add to UTC to get local time.
- Attributes
Remarks
Java documentation for java.util.SimpleTimeZone.getOffset(int, int, int, int, 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.