# @wisetc/utils-date

> JavaScript 日期或日期时间中的常用工具方法。

Latest version **0.0.5** (published 2020-08-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wisetc/utils-date
pnpm add @wisetc/utils-date
yarn add @wisetc/utils-date
bun add @wisetc/utils-date
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2020-08-23 |
| First published | 2020-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 2 |
| Unpacked size | 24.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mark Wang |
| Maintainers | wisetc |

## Links

- npm: https://www.npmjs.com/package/@wisetc/utils-date
- npm.io page: https://npm.io/package/@wisetc/utils-date

## Dependencies (2)

- [moment-timezone](https://npm.io/package/moment-timezone.md) ^0.5.28
- [@types/moment-timezone](https://npm.io/package/@types/moment-timezone.md) ^0.5.13

## Recent versions

- 0.0.5 (latest) — 2020-08-23
- 0.0.4 — 2020-08-03
- 0.0.3 — 2020-04-24
- 0.0.2 — 2020-04-02
- 0.0.1 — 2020-04-02

## README

# DateUtils

JavaScript 日期或日期时间中的常用工具方法。

## 使用方法

```js
import * as dateUtils from '@wisetc/utils-date';

// 获取当天的对应日期的时间戳
console.log(dateUtils.today());
```

**方法列表**

- addDays(timestamp: number, days: number): number
- const
  - ONE_DAY

---
_Source: https://npm.io/package/@wisetc/utils-date · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
