OPC Studio User's Guide and Reference
IsValidTime Method (AEUtilities)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEUtilities Class : IsValidTime Method
The time to be tested.
Determines whether a given time value is valid in OPC Alarms&Events.
Syntax
'Declaration
 
<PureAttribute()>
Public Shared Function IsValidTime( _
   ByVal time As Date _
) As Boolean
'Usage
 
Dim time As Date
Dim value As Boolean
 
value = AEUtilities.IsValidTime(time)
[Pure()]
public static bool IsValidTime( 
   DateTime time
)
[Pure()]
public:
static bool IsValidTime( 
   DateTime time
) 

Parameters

time
The time to be tested.

Return Value

true if time is a valid time; false otherwise.
Remarks
Time must be in UTC, or it must be either System.DateTime.MinValue or System.DateTime.MaxValue.

This method is pure, i.e. it does not have observable side effects.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also