1.1.3 • Published 10 months ago

@cheermix/timeutil v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Usage

This library is based on dayjs and supports timezone

import dayjs from "@cheermix/timeutil"

dayjs()
  .tz()
  .add(1, "year")
  .add(-6, "months")
  .add(3, "weeks")
  .add(-10, "days")
  .format("YYYY-MM-DD HH:mm:ss.SSS")

Environment

NameTypeDefault ValueDescription
NODE_TIMEZONEstringAsia/Hong_KongDayjs timezone
1.1.3

10 months ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago