Since Delphi still does not include a TDateTimeHelper: use the one by colini which has tests
Posted by jpluimers on 2020/11/03
These are quite OK: [WayBack] GitHub – colinj/TDateTimeHelper: Helper record for TDateTime type in [WayBack] DateTimeHelper.pas with DUnitX tests in [WayBack] TDateTimeHelper.Tests.pas.
Via: [WayBack] Does Delphi XE 10.2.2 ship with type helpers for TDateTime type? Or do I need to implement my own. – Graeme Geldenhuys – Google+.
It got even promoted at [WayBack] Delphi XE3: Record Helpers for Intrinsic Types.
–jeroen
Leave a comment