ergonomic-date
v0.1.1
Published
Ergonomic date formatting wrapper.
Readme
ergonomic-date
Ergonomic date formatting wrapper.
Example
import { ErgonomicDate } from "ergonomic-date";
const date = new ErgonomicDate();
console.log(date.localYearMonth); // 2025-07
console.log(date.localYearMonthDay); // 2025-07-24
console.log(date.localYearMonthDayTime); // 2025-07-24T19-35-35
console.log(date.unixtimeSeconds); // 1753410935
console.log(date.unixtimeMilliseconds); // 1753410935343
console.log(date.multipurposeDatestamp); // unixtime-1753410935.localdate-2025-07-24
console.log(date.multipurposeTimestamp); // unixtime-1753410935.localtime-2025-07-24T19-35-35Note that the local date in the example is 2025-07-24 (the date in America/Los_Angeles), not 2025-07-25 (UTC).
