epoch
↔ integer # milliseconds since Jan 1 1970
References
new Date()
↔ to return new Date Object with epochDate
↔ Interface Constructor for new date object (with epoch)Date.now()
↔ to return epochnumber
Intl.DateTimeFormat("en-GB").format(new Date(__EPOCH))
↔ to parse epoch into dd/mm/yy - (apparently this also works in node runtime?!).DateTimeFormat
is a useful shortcut to get locale specific formatting - less boilerplate vs config object params