The above takes care of the 0-11 month output required as per the localtime() function as well as ensures they are integers rather than strings. The resulting datetime stamp vector just needs to be converted to 16-bit little endian binary as per ftn specs for that portion of the pkt_header.
Piece of cake although complete elimination of the pkt datetime would be best.
Life is good,
Maurice
-o o- -o o- o- o- o- o- o- o- o- o- o- -o -o -o
(\ /) (\ /) /) /) /) /) /) /) /) /) /) (\ (\ (\
^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ... A Møøse once bit my sister ...
--- GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
* Origin: One of us @ (1:153/7001.53423)
Who's Online
Recent Visitors
bakerycarlos334
Mon Feb 19 20:49:56 2024
via
HTTP
pythononlineeditor
Sun Feb 25 19:51:42 2024
from
UAE,DUBAI
via
HTTP
Guest
Sun Mar 10 02:15:58 2024
from
System
via
Raw
Hobo
Tue Apr 30 13:20:50 2024
from
Graham, WA
via
Telnet