Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

NtpTimestamp Constructor

Namespace: Rebex.Net
Assembly: Rebex.Time.dll (version 7.0.9147)

NtpTimestamp(DateTime)

Constructs the timestamp from .NET time.

Declaration
public NtpTimestamp(DateTime dateTime)
Parameters
Type Name Description
DateTime dateTime

The local time. Allowed range is 1968-01-20 3:14:08 to 2104-02-26 9:42:23.

NtpTimestamp(Byte[], Int32)

Constructs the timestamp from the raw NTP format.

Declaration
public NtpTimestamp(byte[] data, int index)
Parameters
Type Name Description
Byte[] data

The buffer containing the 8-byte timestamp.

Int32 index

The starting position of the timestamp in the buffer.

In This Article
  • NtpTimestamp(DateTime)
  • NtpTimestamp(Byte[], Int32)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies