TIP: Click on subject to list as thread! ANSI
echo: tuxpower
to: Bjrn Toulouse
from: Maurice Kinal
date: 2024-01-29 02:19:00
subject: almost ready

Hey Bj¨rn!

PKT_DATETIME=$(date +"%Y %-m %-d %-H %-M %-S" | awk 'BEGIN { OFS = "," } {print $1, $2-1, $3, $4, $5, $6}')

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)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.