Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NetUtil_TS_Get()

Anchor12651221265122Application-defined function to get the current Internet Timestamp. Anchor10947341094734

Files

Anchor10947351094735net_util.h/net_bsp.c Anchor10947361094736

Prototype

...

 

Arguments

None.

Returned Value

Current Internet Timestamp, if available; Anchor12086321208632

NET_TS_NONE, otherwise. Anchor12086331208633

Required Configuration

...

None. Anchor12086351208635

Notes / Warnings

...

1094745RFC #791, Section 3.1 ‘Options: Internet Timestamp’ states that “the [Internet] Timestamp is a right-justified, 32-bit timestamp in milliseconds since midnight UT [Universal Time]”. Anchor12087011208701

The application is responsible for providing a real-time clock with correct time-zone configuration to implement the Internet Timestamp, if possible. In order to implement this feature, the target hardware must usually include a real-time clock with the correct time zone configuration. However, NetUtil_TS_Get() is not absolutely required and may return NET_TS_NONE if real-time clock hardware is not available.