Determines whether a given local time value is valid in OPC Data Access.
Syntax
'Declaration
<JetBrains.Annotations.MustUseReturnValueAttribute()>
<JetBrains.Annotations.PureAttribute()>
Public Shared Function IsValidTimeLocal( _
ByVal As Date _
) As Boolean
'Usage
Dim time As Date
Dim value As Boolean
value = DAUtilities.IsValidTimeLocal(time)
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.Pure()]
public static bool IsValidTimeLocal(
DateTime
)
[JetBrains.Annotations.MustUseReturnValue()]
[JetBrains.Annotations.Pure()]
public:
static bool IsValidTimeLocal(
DateTime
)
Parameters
- time
- The local time to be tested.
Return Value
true
if is a valid time;
false
otherwise.
This return value of this method should not be ignored.
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