Skip to main content

epoch ↔ integer # milliseconds since Jan 1 1970

References

  1. new Date() ↔ to return new Date Object with epoch

  2. DateInterface Constructor for new date object (with epoch)

  3. Date.now() ↔ to return epoch number

  4. 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