TIP: Click on subject to list as thread! ANSI
echo: fidosoft.husky
to: Dennis Slagers
from: Dennis Slagers
date: 2024-11-05 16:46:00
subject: date

Hello Dennis!

05 Nov 24 06:32, I wrote to all:


 DS> Hello everybody!

 DS> Asking for a friend: can hpt do the logging and sent $date variable as
 DS> yyyy rather than only yy ?

Answering myself ..
I added

use Time::Piece;

. "Date: $mydate". Time::Piece->strptime($date, "%d %b %y %H:%M:%S")->strftime("%Y-%m-%d %H:%M:%S") . "\r"

to change the date from yy to yyyy ..

the $date is something wierd and the docs are not clear about it ;)

Dennis


--- GoldED+/LNX 1.1.5-b20240309
                                                                                       
* Origin: ---- BOFH: Problem solved, user deleted. (2:280/2060)

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™.