Share via


SimpleTimeZone Constructors

Definition

Overloads

SimpleTimeZone(Int32, String)

Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID with no daylight saving time schedule.

SimpleTimeZone(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

SimpleTimeZone(Int32, String)

Constructs a SimpleTimeZone with the given base time zone offset from GMT and time zone ID with no daylight saving time schedule.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")]
public SimpleTimeZone (int rawOffset, string? ID);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;)V", "")>]
new Java.Util.SimpleTimeZone : int * string -> Java.Util.SimpleTimeZone

Parameters

rawOffset
Int32

The base time zone offset in milliseconds to GMT.

ID
String

The time zone name that is given to this instance.

Attributes

Remarks

Java documentation for java.util.SimpleTimeZone.SimpleTimeZone(int, java.lang.String).

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

SimpleTimeZone(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SimpleTimeZone (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.SimpleTimeZone : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.SimpleTimeZone

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;IIIIIIII)V", "")]
public SimpleTimeZone (int rawOffset, string? ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;IIIIIIII)V", "")>]
new Java.Util.SimpleTimeZone : int * string * int * int * int * int * int * int * int * int -> Java.Util.SimpleTimeZone

Parameters

rawOffset
Int32

The given base time zone offset from GMT.

ID
String

The time zone ID which is given to this object.

startMonth
Int32

The daylight saving time starting month. Month is a Calendar#MONTH MONTH field value (0-based. e.g., 0 for January).

startDay
Int32

The day of the month on which the daylight saving time starts. See the class description for the special cases of this parameter.

startDayOfWeek
Int32

The daylight saving time starting day-of-week. See the class description for the special cases of this parameter.

startTime
Int32

The daylight saving time starting time in local wall clock time (in milliseconds within the day), which is local standard time in this case.

endMonth
Int32

The daylight saving time ending month. Month is a Calendar#MONTH MONTH field value (0-based. e.g., 9 for October).

endDay
Int32

The day of the month on which the daylight saving time ends. See the class description for the special cases of this parameter.

endDayOfWeek
Int32

The daylight saving time ending day-of-week. See the class description for the special cases of this parameter.

endTime
Int32

The daylight saving ending time in local wall clock time, (in milliseconds within the day) which is local daylight time in this case.

Attributes

Exceptions

if the month, day, dayOfWeek, or time parameters are out of range for the start or end rule.

Remarks

Java documentation for java.util.SimpleTimeZone.SimpleTimeZone(int, java.lang.String, int, int, 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.

Applies to

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;IIIIIIIII)V", "")]
public SimpleTimeZone (int rawOffset, string? ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int endMonth, int endDay, int endDayOfWeek, int endTime, int dstSavings);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;IIIIIIIII)V", "")>]
new Java.Util.SimpleTimeZone : int * string * int * int * int * int * int * int * int * int * int -> Java.Util.SimpleTimeZone

Parameters

rawOffset
Int32

The given base time zone offset from GMT.

ID
String

The time zone ID which is given to this object.

startMonth
Int32

The daylight saving time starting month. Month is a Calendar#MONTH MONTH field value (0-based. e.g., 0 for January).

startDay
Int32

The day of the month on which the daylight saving time starts. See the class description for the special cases of this parameter.

startDayOfWeek
Int32

The daylight saving time starting day-of-week. See the class description for the special cases of this parameter.

startTime
Int32

The daylight saving time starting time in local wall clock time, which is local standard time in this case.

endMonth
Int32

The daylight saving time ending month. Month is a Calendar#MONTH MONTH field value (0-based. e.g., 9 for October).

endDay
Int32

The day of the month on which the daylight saving time ends. See the class description for the special cases of this parameter.

endDayOfWeek
Int32

The daylight saving time ending day-of-week. See the class description for the special cases of this parameter.

endTime
Int32

The daylight saving ending time in local wall clock time, which is local daylight time in this case.

dstSavings
Int32

The amount of time in milliseconds saved during daylight saving time.

Attributes

Exceptions

if the month, day, dayOfWeek, or time parameters are out of range for the start or end rule.

Remarks

Java documentation for java.util.SimpleTimeZone.SimpleTimeZone(int, java.lang.String, int, int, int, 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.

Applies to

SimpleTimeZone(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructs a SimpleTimeZone with the given base time zone offset from GMT, time zone ID, and rules for starting and ending the daylight time.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;IIIIIIIIIII)V", "")]
public SimpleTimeZone (int rawOffset, string? ID, int startMonth, int startDay, int startDayOfWeek, int startTime, int startTimeMode, int endMonth, int endDay, int endDayOfWeek, int endTime, int endTimeMode, int dstSavings);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;IIIIIIIIIII)V", "")>]
new Java.Util.SimpleTimeZone : int * string * int * int * int * int * int * int * int * int * int * int * int -> Java.Util.SimpleTimeZone

Parameters

rawOffset
Int32

The given base time zone offset from GMT.

ID
String

The time zone ID which is given to this object.

startMonth
Int32

The daylight saving time starting month. Month is a Calendar#MONTH MONTH field value (0-based. e.g., 0 for January).

startDay
Int32

The day of the month on which the daylight saving time starts. See the class description for the special cases of this parameter.

startDayOfWeek
Int32

The daylight saving time starting day-of-week. See the class description for the special cases of this parameter.

startTime
Int32

The daylight saving time starting time in the time mode specified by startTimeMode.

startTimeMode
Int32

The mode of the start time specified by startTime.

endMonth
Int32

The daylight saving time ending month. Month is a Calendar#MONTH MONTH field value (0-based. e.g., 9 for October).

endDay
Int32

The day of the month on which the daylight saving time ends. See the class description for the special cases of this parameter.

endDayOfWeek
Int32

The daylight saving time ending day-of-week. See the class description for the special cases of this parameter.

endTime
Int32

The daylight saving ending time in time time mode specified by endTimeMode.

endTimeMode
Int32

The mode of the end time specified by endTime

dstSavings
Int32

The amount of time in milliseconds saved during daylight saving time.

Attributes

Exceptions

if the month, day, dayOfWeek, or time parameters are out of range for the start or end rule.

Remarks

Java documentation for java.util.SimpleTimeZone.SimpleTimeZone(int, java.lang.String, int, int, int, int, int, 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.

Applies to