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:
289
Nodes:
10 (0
/
10)
Uptime:
74:33:52
Calls:
2,462
Files:
5,414
D/L today:
33 files
(10,025K bytes)
Messages:
450,190
Synchronet Oneliners
Deepend@rdbbs Tue Dec 16 21:40:53 2025 Merry Christmas!
Vintagegeek@rdbbs Wed Dec 17 10:29:09 2025 M E R R Y C H R I S T M A S
Guest@rdbbs Thu Dec 18 12:25:11 2025 i'm on the bus!
Vintagegeek@rdbbs Sat Dec 20 14:04:54 2025 Buehler
Ben Cartwright@rdbbs Mon Dec 29 08:15:35 2025 Hi!
Vintagegeek@rdbbs Fri Jan 2 13:31:40 2026 H A P P Y NEW YEAR