OPC Studio User's Guide and Reference
FormatTimestampAndPicoseconds Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub Namespace > UAPubSubUtilities Class : FormatTimestampAndPicoseconds Method
The timestamp to be formatted.
The picoseconds to be formatted.
Formats the timestamp and picoseconds with precision sufficient for OPC UA PubSub.
Syntax
'Declaration
 
<NotNullAttribute()>
Public Shared Function FormatTimestampAndPicoseconds( _
   ByVal dateTime As Date, _
   ByVal picoseconds As Integer _
) As String
'Usage
 
Dim dateTime As Date
Dim picoseconds As Integer
Dim value As String
 
value = UAPubSubUtilities.FormatTimestampAndPicoseconds(dateTime, picoseconds)
[NotNull()]
public static string FormatTimestampAndPicoseconds( 
   DateTime dateTime,
   int picoseconds
)
[NotNull()]
public:
static String^ FormatTimestampAndPicoseconds( 
   DateTime dateTime,
   int picoseconds
) 

Parameters

dateTime
The timestamp to be formatted.
picoseconds
The picoseconds to be formatted.

Return Value

Returns the formatted timestamp and picoseconds.
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