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
Recent Visitors
Deepend
Fri Nov 20 00:13:31 2026
from
Calgary, Ab
via
HTTPS
Vintagegeek
Thu Nov 19 11:14:40 2026
from
Swarthmore, Pa
via
Telnet
Vintagegeek
Tue Nov 17 06:51:08 2026
from
Swarthmore, Pa
via
Telnet
Vintagegeek
Mon Nov 16 15:18:32 2026
from
Swarthmore, Pa
via
Telnet
System Info
Sysop:
deepend
Location:
Calgary, Alberta
Users:
326
Nodes:
10 (0
/
10)
Uptime:
83:32:11
Calls:
2,755
Files:
6,698
D/L today:
14 files
(10,291K bytes)
Messages:
498,073
Synchronet Oneliners
Dundee@rdbbs Mon Oct 19 16:38:50 2026 The Dude abides...
Vintagegeek@rdbbs Sun Nov 1 13:54:14 2026 November is here
Vintagegeek@rdbbs Fri Nov 6 11:28:18 2026 His r Hers Golf Clubs
Vintagegeek@rdbbs Sun Nov 15 08:19:35 2026 back online
Vintagegeek@rdbbs Mon Nov 16 15:18:25 2026 picit0
Vintagegeek@rdbbs Tue Nov 17 06:50:40 2026 MegaSlots and Lemonade