Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datamweb/jdf_helper
Solar(Jalali) Date and Time Helper for CodeIgniter
https://github.com/datamweb/jdf_helper
codeigniter jalali jdf-helper solar
Last synced: about 1 month ago
JSON representation
Solar(Jalali) Date and Time Helper for CodeIgniter
- Host: GitHub
- URL: https://github.com/datamweb/jdf_helper
- Owner: datamweb
- License: gpl-3.0
- Created: 2017-02-02T11:46:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-26T07:41:54.000Z (10 months ago)
- Last Synced: 2024-10-16T19:40:24.699Z (3 months ago)
- Topics: codeigniter, jalali, jdf-helper, solar
- Language: PHP
- Homepage: http://www.datamweb.ir
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![StyleCI](https://styleci.io/repos/80719967/shield?branch=analysis-8Qjo1P)](https://styleci.io/repos/80719967)
# CodeIgniter jdf_helper
Hijri_Shamsi,Solar(Jalali) Date and Time Helper for CodeIgniter#Requirements
CodeIgniter should be configured to load `jdf_helper` automatically.#Installation
=============
Just ...- 1.copy `jdf_helper.php` into the `applications/helpers` directory.
- 2. Autoload the helper in `application/config/autoload.php` or load it in needed controllers with `$this->load->helper('jdf');`.Enjoy now.
Usage
=====
For example, typing in the view file.- echo jstrftime('%Y/%m/%d');
- echo gregorian_to_jalali(2017,03,21,'/');
- ```php
$created_at = '2024-03-26 03:23:32';
jdate('Y-m-d H:i:s',strtotime($created_at)); //۱۴۰۳-۰۱-۰۷ ۰۳:۲۳:۳۲
```Contact info
============
- Email:Pooya_parsa_dadashi{in}yahoo.com
- website: http://DatamWeb.ir/