public class TimeZoneInfo extends NetObject implements ISerializable, IDeserializationCallback
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.TimeZoneInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
TimeZoneInfo() |
TimeZoneInfo(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeZoneInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into TimeZoneInfo, a cast assert is made to check if types are compatible. |
static void |
ClearCachedData() |
static DateTimeOffset |
ConvertTime(DateTimeOffset dateTimeOffset,
TimeZoneInfo destinationTimeZone) |
static DateTime |
ConvertTime(DateTime dateTime,
TimeZoneInfo destinationTimeZone) |
static DateTime |
ConvertTime(DateTime dateTime,
TimeZoneInfo sourceTimeZone,
TimeZoneInfo destinationTimeZone) |
static DateTimeOffset |
ConvertTimeBySystemTimeZoneId(DateTimeOffset dateTimeOffset,
java.lang.String destinationTimeZoneId) |
static DateTime |
ConvertTimeBySystemTimeZoneId(DateTime dateTime,
java.lang.String destinationTimeZoneId) |
static DateTime |
ConvertTimeBySystemTimeZoneId(DateTime dateTime,
java.lang.String sourceTimeZoneId,
java.lang.String destinationTimeZoneId) |
static DateTime |
ConvertTimeFromUtc(DateTime dateTime,
TimeZoneInfo destinationTimeZone) |
static DateTime |
ConvertTimeToUtc(DateTime dateTime) |
static DateTime |
ConvertTimeToUtc(DateTime dateTime,
TimeZoneInfo sourceTimeZone) |
static TimeZoneInfo |
CreateCustomTimeZone(java.lang.String id,
TimeSpan baseUtcOffset,
java.lang.String displayName,
java.lang.String standardDisplayName) |
boolean |
Equals(TimeZoneInfo other) |
static TimeZoneInfo |
FindSystemTimeZoneById(java.lang.String id) |
static TimeZoneInfo |
FromSerializedString(java.lang.String source) |
TimeSpan[] |
GetAmbiguousTimeOffsets(DateTime dateTime) |
TimeSpan[] |
GetAmbiguousTimeOffsets(DateTimeOffset dateTimeOffset) |
TimeSpan |
getBaseUtcOffset() |
java.lang.String |
getDaylightName() |
java.lang.String |
getDisplayName() |
java.lang.String |
getId() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
static TimeZoneInfo |
getLocal() |
java.lang.String |
getStandardName() |
boolean |
getSupportsDaylightSavingTime() |
static TimeZoneInfo |
getUtc() |
TimeSpan |
GetUtcOffset(DateTime dateTime) |
TimeSpan |
GetUtcOffset(DateTimeOffset dateTimeOffset) |
boolean |
HasSameRules(TimeZoneInfo other) |
boolean |
IsAmbiguousTime(DateTime dateTime) |
boolean |
IsAmbiguousTime(DateTimeOffset dateTimeOffset) |
boolean |
IsDaylightSavingTime(DateTime dateTime) |
boolean |
IsDaylightSavingTime(DateTimeOffset dateTimeOffset) |
boolean |
IsInvalidTime(DateTime dateTime) |
void |
setJCOInstance(JCObject instance) |
java.lang.String |
ToSerializedString() |
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializableOnDeserialization, ToIDeserializationCallbackpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public TimeZoneInfo()
throws java.lang.Throwable
java.lang.Throwablepublic TimeZoneInfo(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static TimeZoneInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into TimeZoneInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedTimeZoneInfo instancejava.lang.Throwable - in case of error during cast operationpublic static void ClearCachedData()
throws java.lang.Throwable
java.lang.Throwablepublic static DateTimeOffset ConvertTime(DateTimeOffset dateTimeOffset, TimeZoneInfo destinationTimeZone) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionOverflowExceptionpublic static DateTime ConvertTime(DateTime dateTime, TimeZoneInfo destinationTimeZone) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, InvalidOperationException, CultureNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionSecurityExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionInvalidOperationExceptionCultureNotFoundExceptionpublic static DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone) throws java.lang.Throwable, ArgumentNullException, ArgumentException, OverflowException, ArgumentOutOfRangeException, FormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionOverflowExceptionArgumentOutOfRangeExceptionFormatExceptionpublic static DateTimeOffset ConvertTimeBySystemTimeZoneId(DateTimeOffset dateTimeOffset, java.lang.String destinationTimeZoneId) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, NotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, TimeZoneNotFoundException, SecurityException, ObjectDisposedException, IndexOutOfRangeException, UnauthorizedAccessException, IOException, PlatformNotSupportedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionNotSupportedExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionTimeZoneNotFoundExceptionSecurityExceptionObjectDisposedExceptionIndexOutOfRangeExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionpublic static DateTime ConvertTimeBySystemTimeZoneId(DateTime dateTime, java.lang.String destinationTimeZoneId) throws java.lang.Throwable, ArgumentException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, NotSupportedException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, TimeZoneNotFoundException, SecurityException, ObjectDisposedException, IndexOutOfRangeException, UnauthorizedAccessException, IOException, PlatformNotSupportedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionNotSupportedExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionTimeZoneNotFoundExceptionSecurityExceptionObjectDisposedExceptionIndexOutOfRangeExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionpublic static DateTime ConvertTimeBySystemTimeZoneId(DateTime dateTime, java.lang.String sourceTimeZoneId, java.lang.String destinationTimeZoneId) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, CultureNotFoundException, NotSupportedException, TimeZoneNotFoundException
public static DateTime ConvertTimeFromUtc(DateTime dateTime, TimeZoneInfo destinationTimeZone) throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionpublic static DateTime ConvertTimeToUtc(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, InvalidOperationException, CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionSecurityExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionInvalidOperationExceptionCultureNotFoundExceptionpublic static DateTime ConvertTimeToUtc(DateTime dateTime, TimeZoneInfo sourceTimeZone) throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionpublic static TimeZoneInfo CreateCustomTimeZone(java.lang.String id, TimeSpan baseUtcOffset, java.lang.String displayName, java.lang.String standardDisplayName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, InvalidTimeZoneException, OverflowException
public boolean Equals(TimeZoneInfo other) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException
public static TimeZoneInfo FindSystemTimeZoneById(java.lang.String id) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, TimeZoneNotFoundException, SecurityException, ObjectDisposedException, IndexOutOfRangeException, OutOfMemoryException, UnauthorizedAccessException, IOException, PlatformNotSupportedException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionTypeLoadExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionTimeZoneNotFoundExceptionSecurityExceptionObjectDisposedExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionpublic static TimeZoneInfo FromSerializedString(java.lang.String source) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, SerializationException, InvalidTimeZoneException, OverflowException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionFormatExceptionSerializationExceptionInvalidTimeZoneExceptionOverflowExceptionpublic TimeSpan[] GetAmbiguousTimeOffsets(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, InvalidOperationException, CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionSecurityExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionInvalidOperationExceptionCultureNotFoundExceptionpublic TimeSpan[] GetAmbiguousTimeOffsets(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionOverflowExceptionpublic TimeSpan getBaseUtcOffset() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getDaylightName()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getDisplayName()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getId()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDeserializationCallbackgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDeserializationCallbackgetJCOClassName in interface ISerializablegetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDeserializationCallbackgetJCOInstance in interface ISerializablegetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDeserializationCallbackgetJCOObjectName in interface ISerializablegetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDeserializationCallbackgetJCOType in interface ISerializablegetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic static TimeZoneInfo getLocal() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, InvalidOperationException, CultureNotFoundException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionNotSupportedExceptionSecurityExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionInvalidOperationExceptionCultureNotFoundExceptionpublic java.lang.String getStandardName()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getSupportsDaylightSavingTime()
throws java.lang.Throwable
java.lang.Throwablepublic static TimeZoneInfo getUtc() throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionFormatExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionOverflowExceptionpublic TimeSpan GetUtcOffset(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, CultureNotFoundException, NotSupportedException
public TimeSpan GetUtcOffset(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, OverflowException, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionOverflowExceptionArgumentNullExceptionpublic boolean HasSameRules(TimeZoneInfo other) throws java.lang.Throwable, ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic boolean IsAmbiguousTime(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, CultureNotFoundException, NotSupportedException
public boolean IsAmbiguousTime(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, OverflowException, InvalidTimeZoneException, SecurityException, IOException, InvalidOperationException, NotSupportedException
public boolean IsDaylightSavingTime(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, CultureNotFoundException, NotSupportedException
public boolean IsDaylightSavingTime(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, OverflowException, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentExceptionOverflowExceptionArgumentNullExceptionpublic boolean IsInvalidTime(DateTime dateTime) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionArgumentExceptionFormatExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic java.lang.String ToSerializedString()
throws java.lang.Throwable,
ArgumentOutOfRangeException,
OutOfMemoryException,
ArgumentNullException,
FormatException,
InvalidOperationException,
IndexOutOfRangeException,
OverflowException,
CultureNotFoundException,
NullReferenceException,
ArgumentException