# date-calculation

> 输入日期及天数推算往后或往前目标日期

Latest version **1.0.1** (published 2022-01-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install date-calculation
pnpm add date-calculation
yarn add date-calculation
bun add date-calculation
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-01-14 |
| First published | 2022-01-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | xiujun58 |
| Maintainers | xiujun58 |
| Keywords | date, calculation, date-calculation |

## Links

- npm: https://www.npmjs.com/package/date-calculation
- Repository: https://github.com/xiujun58/date-calculation
- Homepage: https://github.com/xiujun58/date-calculation#readme
- Issues: https://github.com/xiujun58/date-calculation/issues
- npm.io page: https://npm.io/package/date-calculation

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-01-14
- 1.0.0 — 2022-01-14

## README

# date-calculation
输入日期及天数推算往后或往前目标日期


## Install
npm install date-calculation -S

## Quick Start
- import dateCalculation from "date-calculation" ;
- const value = dateCalculation({
-    startTime:'2022/1/13',
-    num:50
- })
-  --> 2022/03/04 星期五

## Params
- startTime (开始时间) :日期对象或时间戳
- num (数值)
- dateType (计算的类型)  默认值1 -->  可选: 1 表示天数 2表示星期 3表示月 
- isExtrapolateBack (是否往后推算) 默认true ---> 可选false 如需往前推算传入false
- symbol (输出日期的连接符) 默认'/'

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