# ir-datetimepicker

> Angular 6 persian datetime picker

Latest version **1.2.2** (published 2019-04-07) · 0 weekly downloads

## Install

```sh
npm install ir-datetimepicker
pnpm add ir-datetimepicker
yarn add ir-datetimepicker
bun add ir-datetimepicker
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2019-04-07 |
| First published | 2018-05-25 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 813.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Reza Tayebi |
| Maintainers | withoutbrain1994 |
| Keywords | angular, angular6-library, datepicker, persian-datepicker, persian-datetime, angular-material-time-picker |

## Links

- npm: https://www.npmjs.com/package/ir-datetimepicker
- Homepage: https://github.com/RezaT1994/ir-datetimepicker
- npm.io page: https://npm.io/package/ir-datetimepicker

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## 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.2.2 (latest) — 2019-04-07
- 1.2.1 — 2019-04-06
- 1.2.0 — 2019-01-30
- 1.0.3 — 2018-12-18
- 1.0.2 — 2018-07-16
- 1.0.1 — 2018-05-26
- 1.0.0 — 2018-05-25
- 0.0.1 — 2018-05-25

## README

# ir-datetimepicker
Angular 6 persian datetime picker

## Usage

1. Install from npm:
```
npm install ir-datetimepicker --save
```

2. Import **IrDateTimePickerModule** to app.module.ts:
```javascript
import { IrDateTimePickerModule } from 'ir-datetimepicker';
@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        IrDateTimePickerModule
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }
```

3. Now use this in your html:
```html
<ir-datetimepicker></ir-datetimepicker>
```

## Attributes
| Attr | Type | Default | Description | Sample |
| ---- | :----: | :-------: | ----------- | ------ |
| placeholder | string | '' | Placeholder for the text input | [placeholder]="'تاریخ'" |
| showTimer | boolean | false | Show timer with date | [showTimer]="true" |
| justTime | boolean | false | Show just timer and hides date | [justTime]="true" |
| readonly | boolean | false | Make the input readonly | [readonly]="true" |
| disableBeforeToday | boolean | false | Disable use from selecting date before today | [disableBeforeToday]="true" |
| (ngModel) | string | '' | You can also use ngModel | [(ngModel)]="1397/01/23" |

## Events
| Event | Description | Sample |
| ----- | ----------- | ------ |
| onchange() | Change event that trigger on input and date selection | (onchange)="changeDate($event)" |

`$event` contains these keys:

| Key | Description |
| --- | ----------- |
| jDate | Jalali Date |
| gDate | Gregorian Date |
| time | Time |
| fullDate | Full date with time |
| invalid | If the date input is invalid it will be false |

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