Versions Compared

Key

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

...

Anchor10947321094732 NetUtil_TS_Get () Anchor12651221265122 Application-defined function to get the current Internet Timestamp. Anchor10947341094734

Files

...

net_util.h/net_bsp.c Anchor10947361094736

Prototype

HTML Table
summary
classCode_Listing
Table Row (tr)
Table Cell (td)
Anchor
11255351125535
Code Block

          NET_TS NetUtil_TS_Get (void);

...

Arguments

...

1094739None. Anchor12086301208630

Returned Value

...

12086311208631Current Internet Timestamp, if available; Anchor12086321208632

NET_TS_NONE, otherwise.anchor12086331208633

Required Configuration

...

None. Anchor12086351208635

Notes / Warnings

...

RFC #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.