Package system
Class TimeZoneInfo
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.TimeZoneInfo
-
- All Implemented Interfaces:
IJCOBridgeReflected
,IDeserializationCallback
,ISerializable
public class TimeZoneInfo extends NetObject implements ISerializable, IDeserializationCallback
The base .NET class managing System.TimeZoneInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.TimeZoneInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.TimeZoneInfostatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description TimeZoneInfo()
TimeZoneInfo(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TimeZoneInfo
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTimeZoneInfo
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic 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()
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.IDeserializationCallback
OnDeserialization
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.TimeZoneInfo- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDeserializationCallback
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOAssemblyName
in interfaceISerializable
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDeserializationCallback
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOClassName
in interfaceISerializable
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDeserializationCallback
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Specified by:
getJCOObjectName
in interfaceISerializable
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDeserializationCallback
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Specified by:
getJCOInstance
in interfaceISerializable
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDeserializationCallback
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Specified by:
getJCOType
in interfaceISerializable
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TimeZoneInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTimeZoneInfo
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TimeZoneInfo
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Equals
public boolean Equals(TimeZoneInfo other) throws java.lang.Throwable, ArgumentException, ArgumentNullException, TypeLoadException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException
-
HasSameRules
public boolean HasSameRules(TimeZoneInfo other) throws java.lang.Throwable, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentNullException
-
IsAmbiguousTime
public boolean IsAmbiguousTime(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, CultureNotFoundException, NotSupportedException
-
IsAmbiguousTime
public boolean IsAmbiguousTime(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, OverflowException, InvalidTimeZoneException, SecurityException, IOException, InvalidOperationException, NotSupportedException
-
IsDaylightSavingTime
public boolean IsDaylightSavingTime(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, CultureNotFoundException, NotSupportedException
-
IsDaylightSavingTime
public boolean IsDaylightSavingTime(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, OverflowException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
OverflowException
ArgumentNullException
-
IsInvalidTime
public boolean IsInvalidTime(DateTime dateTime) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
FormatException
-
ConvertTime
public 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
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
FormatException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
NotSupportedException
SecurityException
ObjectDisposedException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
InvalidOperationException
CultureNotFoundException
-
ConvertTime
public static DateTime ConvertTime(DateTime dateTime, TimeZoneInfo sourceTimeZone, TimeZoneInfo destinationTimeZone) throws java.lang.Throwable, ArgumentNullException, ArgumentException, OverflowException, ArgumentOutOfRangeException, FormatException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
OverflowException
ArgumentOutOfRangeException
FormatException
-
ConvertTimeBySystemTimeZoneId
public 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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
NotSupportedException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
TimeZoneNotFoundException
SecurityException
ObjectDisposedException
IndexOutOfRangeException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
-
ConvertTimeBySystemTimeZoneId
public 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
-
ConvertTimeFromUtc
public static DateTime ConvertTimeFromUtc(DateTime dateTime, TimeZoneInfo destinationTimeZone) throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
FormatException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
-
ConvertTimeToUtc
public static DateTime ConvertTimeToUtc(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
NotSupportedException
SecurityException
ObjectDisposedException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
InvalidOperationException
CultureNotFoundException
-
ConvertTimeToUtc
public static DateTime ConvertTimeToUtc(DateTime dateTime, TimeZoneInfo sourceTimeZone) throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
FormatException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
-
ConvertTime
public static DateTimeOffset ConvertTime(DateTimeOffset dateTimeOffset, TimeZoneInfo destinationTimeZone) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, OverflowException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
OverflowException
-
ConvertTimeBySystemTimeZoneId
public 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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
NotSupportedException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
TimeZoneNotFoundException
SecurityException
ObjectDisposedException
IndexOutOfRangeException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
-
ToSerializedString
public java.lang.String ToSerializedString() throws java.lang.Throwable, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, FormatException, InvalidOperationException, IndexOutOfRangeException, OverflowException, CultureNotFoundException, NullReferenceException, ArgumentException
-
GetUtcOffset
public TimeSpan GetUtcOffset(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, SecurityException, UnauthorizedAccessException, IOException, InvalidOperationException, CultureNotFoundException, NotSupportedException
-
GetUtcOffset
public TimeSpan GetUtcOffset(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, OverflowException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
OverflowException
ArgumentNullException
-
GetAmbiguousTimeOffsets
public TimeSpan[] GetAmbiguousTimeOffsets(DateTime dateTime) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
NotSupportedException
SecurityException
ObjectDisposedException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
InvalidOperationException
CultureNotFoundException
-
GetAmbiguousTimeOffsets
public TimeSpan[] GetAmbiguousTimeOffsets(DateTimeOffset dateTimeOffset) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
OverflowException
-
CreateCustomTimeZone
public 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
-
FindSystemTimeZoneById
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
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
TypeLoadException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
TimeZoneNotFoundException
SecurityException
ObjectDisposedException
IndexOutOfRangeException
OutOfMemoryException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
-
FromSerializedString
public 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
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
SerializationException
InvalidTimeZoneException
OverflowException
-
ClearCachedData
public static void ClearCachedData() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSupportsDaylightSavingTime
public boolean getSupportsDaylightSavingTime() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDaylightName
public java.lang.String getDaylightName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDisplayName
public java.lang.String getDisplayName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getId
public java.lang.String getId() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getStandardName
public java.lang.String getStandardName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBaseUtcOffset
public TimeSpan getBaseUtcOffset() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLocal
public static TimeZoneInfo getLocal() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException, NotSupportedException, SecurityException, ObjectDisposedException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, InvalidOperationException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
NotSupportedException
SecurityException
ObjectDisposedException
UnauthorizedAccessException
IOException
PlatformNotSupportedException
InvalidOperationException
CultureNotFoundException
-
getUtc
public static TimeZoneInfo getUtc() throws java.lang.Throwable, ArgumentException, ArgumentNullException, FormatException, ArgumentOutOfRangeException, InvalidTimeZoneException, OverflowException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
FormatException
ArgumentOutOfRangeException
InvalidTimeZoneException
OverflowException
-
-