dev-master
9999999-dev http://sallar.me/projects/jdatetime/Jalali (Shamsi) DateTime for Symfony3, Supports year higher than 2038
MIT
The Requires
- php >=5.2.0
symfony time datetime jalali persian jalalidate farsi shamsi jdatetime
Jalali (Shamsi) DateTime for Symfony3, Supports year higher than 2038
Symfony Bundle for converting dates from Gregorian calendar system to Jalali calendar system and vice versa. Supports dates beyond 2038.
Jalali, also known as Shamsi or Hijri Shamsi is the Iranian calendar system. It uses Salar Kaboli's jDateTime class for the conversion., (*2)
jDateTime Requires PHP >= 5.2, (*3)
composer require svfnix/symfonyjdate
And then add the package to app/AppKernel.php, (*4)
There is two ways to use this bundle:, (*5)
Simply you can filter any variable containing a date, datetime, interval or date string:, (*6)
{{ entity.date|jdate }}
Also it's possible to chose the format:, (*7)
{{ entity.date|jdate('Y-m-d') }}
Not recommanded, Maybe neccessary in some situations though., (*8)
Example:, (*9)
$jDate = $serviceContainer->get('symfony_persia.jdate');
Symfony JalaliDate Bundle was created by MohammadHossein Heydari and released under the MIT License., (*10)
Copyright (C) 2015 MohammadHossein Heydari, (*11)
jDateTime was created by Sallar Kaboli and released under the MIT License., (*12)
Copyright (C) 2015 Sallar Kaboli
Part of Phoenix Framework (p5x.org) by Phoenix Alternatvie, (*13)
Original Jalali to Gregorian (and vice versa) convertor:
Copyright (C) 2000 Roozbeh Pournader and Mohammad Toossi, (*14)
The MIT License (MIT) Copyright (C) 2015 MohammadHossein Heydari Copyright (C) 2003-2015 Sallar Kaboli Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 1- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 2- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Jalali (Shamsi) DateTime for Symfony3, Supports year higher than 2038
MIT
symfony time datetime jalali persian jalalidate farsi shamsi jdatetime