Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/ts-utils/src/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export const SECONDS = 1000;
export const MINUTES = 60 * SECONDS;
export const HOURS = 60 * MINUTES;
export const DAYS = 24 * HOURS;
export const WEEKS = 7 * DAYS;
export const MONTHS = 30 * DAYS;
export const YEARS = 365.25 * DAYS;

export interface Timespan {
Expand Down
2 changes: 2 additions & 0 deletions src/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export const SECONDS = 1000;
export const MINUTES = 60 * SECONDS;
export const HOURS = 60 * MINUTES;
export const DAYS = 24 * HOURS;
export const WEEKS = 7 * DAYS;
export const MONTHS = 30 * DAYS;
export const YEARS = 365.25 * DAYS;

export interface Timespan {
Expand Down