Giter VIP home page Giter VIP logo

jalali's Issues

امرداد

نام ماه ۵ ام به اشتباه "امرداد" است

متد jtosql

سلام
مثل اینکه متد jtosql دراین کلاس وجود داشته که الان وجود نداره.
برای جایگزین کردن این متد چیکار کنم؟
jDateTime::jtosql($startDate, 00, 00)

create carbon object

ساعت نشان داده شده همواره 4:30 از ساعت ذخیره شده عقب است.
my server timezone is Asia/Tehran
my timezone in config/app.php is Asia/Tehran

code to save date:
jDateTime::createCarbonFromFormat('Y-n-j', $request->input('hire_date'))->toDateString()

code to show date:
jDate::forge($user->hire_date)->format('j F Y')

Class 'Miladr\Jalali\jDateTime' not found

Hi!
whenever I tried to make use of "format" function, it throws error at: vendor/miladr/jalali/src/Miladr/Jalali/jDate.php at return code in :
...
// if valid unix timestamp...
if ($this->time !== false){
return jDateTime::strftime($str, $this->time);
}
else{
....
and it says: Class 'Miladr\Jalali\jDateTime' not found
example:
$date = jDate::forge('last sunday')->format('%B %d، %Y');
thank you

Releasing

I suggest to use release for new updates, as someone updates the Laravel using composer may want to keep the previous versions of this package

روز هفته

لطفا آپشنی اضافه کنید که روز هفته رو به فارسی بنویسه
برای مثال پنجشنبه
جمعه
شنبه
و ...

افزودن به codeigniter

سلام
چطور می شود این پکیج را در فریم ورک کدایگنیتر اجرا کرد؟

ممنون

شمسی به میلادی

سلام ، آیا امکانش هست که تاریخی رو از شمسی به میلادی تبدیل کرد؟ چطور؟

jDateTime class not recognized

It seems you have just registered jDate class in the JalaliServiceProvider and jDateTime is not recognized in the application
I changed jDate to jDateTime and now can use conversion methods,
however I don't know how to register or use both classes

Installation suggestion

Thank you for providing this necessary package for Persian developers
I just had a request
the installation process needs composer update which may be time consuming for some machines.
could you please beside this installation method, offer another installation based on download, copy and configurations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.