Formats the timestamp with precision sufficient for OPC UA PubSub.
Syntax
'Declaration
<NotNullAttribute()>
Public Shared Function FormatTimestamp( _
ByVal As Date _
) As String
'Usage
Dim dateTime As Date
Dim value As String
value = UAPubSubUtilities.FormatTimestamp(dateTime)
Parameters
- dateTime
- The timestamp to be formatted.
Return Value
Returns the formatted timestamp.
This method never returns null
(Nothing
in Visual Basic).
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