<commit_before># Date [in development]

Fix all needs to date in php

## Tutorial

This package contains 2 class, ```Jalali``` and ```Date```. ```Jalali``` class responsible for Jalali (shamsi) date time and ```Date``` class responsible for Gregorian date time.

All below examples should be run in ```Jalali``` and ```Date``` class.

### Include Classes

```php
use Date\Date;
use Date\Jalali;
```

### Examples

#### Creators

```php
$date = new Jalali('1395/04/10 23:10:05');
$date->format('Y-m-d H:i:s');

echo new Jalali('1395-04-10');

echo Jalali::now();

echo Jalali::create(1394, 05, 04, 12, 45, 23);
echo Jalali::createDate(1394, 05, 04);
echo Jalali::createTime(12, 45, 23);
```

#### Converters

```php
$date = new Jalali('1373/06/05 23:10:05');
echo $date->toGregorian();

$date = new Jalali('1373/06/05 23:10:05');
echo $date->tog(); // An aliases for toGregorian method

$date = new Date('2012-06-05 20:05:01');
echo $date->toJalali();

$date = new Date('2012-06-05 20:05:01');
echo $date->toj(); // An aliases for toJalali method
```
<commit_msg>Add install section in README.md<commit_after># Date [in development]

Fix all needs to date in php

## Install

```
composer  require m-jch/date:dev-master --prefer-dist
```

## Tutorial

This package contains 2 class, ```Jalali``` and ```Date```. ```Jalali``` class responsible for Jalali (shamsi) date time and ```Date``` class responsible for Gregorian date time.

All below examples should be run in ```Jalali``` and ```Date``` class.

### Include Classes

```php
use Date\Date;
use Date\Jalali;
```

### Examples

#### Creators

```php
$date = new Jalali('1395/04/10 23:10:05');
$date->format('Y-m-d H:i:s');

echo new Jalali('1395-04-10');

echo Jalali::now();

echo Jalali::create(1394, 05, 04, 12, 45, 23);
echo Jalali::createDate(1394, 05, 04);
echo Jalali::createTime(12, 45, 23);
```

#### Converters

```php
$date = new Jalali('1373/06/05 23:10:05');
echo $date->toGregorian();

$date = new Jalali('1373/06/05 23:10:05');
echo $date->tog(); // An aliases for toGregorian method

$date = new Date('2012-06-05 20:05:01');
echo $date->toJalali();

$date = new Date('2012-06-05 20:05:01');
echo $date->toj(); // An aliases for toJalali method
```

{'fraction_non_alphanumeric': 0.20288548241659152, 'fraction_numerical': 0.09648331830477908, 'mean_word_length': 4.824146981627297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '32480', 'n_tokens_mistral': 1015, 'n_tokens_neox': 846, 'n_words': 247}