UNPKG

@kiwicom/orbit-tracking

Version:

Tracking for orbit design system

14 lines (12 loc) 312 B
// src/helpers/date.ts var timestamp = () => { const month2 = new Date().getMonth() + 1; const year = new Date().getFullYear(); const hour = new Date().getHours(); return `${month2}-${year}-${hour}`; }; var month = new Date().toLocaleString("en-US", { month: "long" }); export { timestamp, month };