So, I think you could boil function this down to a single line that doesn't involve any string formatting or parsing:
`return new Date(pYear, pMonthNum - 1, pDayNum, pHour, pMinute, pSecond === undefined ? 0 : pSecond);`
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
From Rob Swindell@VERT to GitLab note in main/sbbs on Fri Aug 16 18:28:29 2024
TimeTFFrom.. was a typo.
Sometimes it would be good to find better documentation on things, such as the Date class constructor in this case..
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
Who's Online
System Info
Sysop:
deepend
Location:
Calgary, Alberta
Users:
269
Nodes:
10 (0
/
10)
Uptime:
04:48:03
Calls:
2,166
Files:
4,577
D/L today:
48 files
(19,605K bytes)
Messages:
420,367
Synchronet Oneliners
Vintagegeek@rdbbs Mon Apr 7 15:00:43 2025 Britbox
Vintagegeek@rdbbs Tue Apr 29 06:11:59 2025 My life is Murder TV
Vintagegeek@rdbbs Sat May 3 05:08:46 2025 Go Stampede
Darknetgirl@rdbbs Tue May 6 02:09:48 2025 Greetings from London/Milan. Getting back to real stuff
Vintagegeek@rdbbs Wed May 14 09:34:53 2025 Greetings from the ISS
Guest@rdbbs Sun May 18 09:30:17 2025 greetings from Poland / Europe