<commit_before>= RailsPdate

rails_pdate  is very simple and easy gem library that can used in rails application.

rails_pdate gem has written in rails 4.0.0 but maybe work in previous versions of rails

== badges

{<img src="https://codeclimate.com/github/mohsen-alizadeh/rails-pdate/badges/gpa.svg" />}[https://codeclimate.com/github/mohsen-alizadeh/rails-pdate]
{<img src="https://travis-ci.org/mohsen-alizadeh/rails-pdate.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/mohsen-alizadeh/rails-pdate]
{<img src="https://codeclimate.com/github/mohsen-alizadeh/rails-pdate/badges/coverage.svg" />}[https://codeclimate.com/github/mohsen-alizadeh/rails-pdate/coverage]

== install
* put rails_pdate in Gemfile like this

    gem 'rails_pdate'

* run bunle install

    bundle install


== Examples

* parse string to PDate object



    "1368-11-09".to_pdate   # => 1368-11-09
    
    "1368/11/09".to_pdate   # => 1368-11-09 
    
    "1368/11/09".to_pdate.class   # => PDate


* convert Date object to PDate object ( Convert from gregorian to persian )<commit_msg>add codeclimate issues count badge to README<commit_after>= RailsPdate

rails_pdate  is very simple and easy gem library that can used in rails application.

rails_pdate gem has written in rails 4.0.0 but maybe work in previous versions of rails

== badges

{<img src="https://codeclimate.com/github/mohsen-alizadeh/rails-pdate/badges/gpa.svg" />}[https://codeclimate.com/github/mohsen-alizadeh/rails-pdate]
{<img src="https://travis-ci.org/mohsen-alizadeh/rails-pdate.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/mohsen-alizadeh/rails-pdate]
{<img src="https://codeclimate.com/github/mohsen-alizadeh/rails-pdate/badges/coverage.svg" />}[https://codeclimate.com/github/mohsen-alizadeh/rails-pdate/coverage]
{<img src="https://codeclimate.com/github/mohsen-alizadeh/rails-pdate/badges/issue_count.svg" />}[https://codeclimate.com/github/mohsen-alizadeh/rails-pdate]

== install
* put rails_pdate in Gemfile like this

    gem 'rails_pdate'

* run bunle install

    bundle install


== Examples

* parse string to PDate object



    "1368-11-09".to_pdate   # => 1368-11-09
    
    "1368/11/09".to_pdate   # => 1368-11-09 
    
    "1368/11/09".to_pdate.class   # => PDate


* convert Date object to PDate object ( Convert from gregorian to persian )
{'fraction_non_alphanumeric': 0.13835674755214986, 'fraction_numerical': 0.036611323967645805, 'mean_word_length': 3.916317991631799, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 16, 'https://': 14, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5949379', 'n_tokens_mistral': 968, 'n_tokens_neox': 874, 'n_words': 169}