Skip to content

Commit e1d1803

Browse files
committed
Merge branch 'master' of github.com:iamtartan/laravel-jalali-date
2 parents 9695e5b + cfa7e66 commit e1d1803

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ Add Zaman to app aliases in config/app.php file
4747

4848
```php
4949

50-
// Jalali to Gregraian sample
51-
50+
// Jalali to Gregraian samples
5251
echo Zaman::jTog('next week');
5352
echo Zaman::jTog('now');
5453
echo Zaman::jTog('1396-06-30 05:30:10');
@@ -60,19 +59,19 @@ echo Zaman::gToj('2010-10-24 22:50:14');
6059
echo Zaman::gToj('2014-09-21 07:12:54', 'EEEE yyyy/MMMM/dd H:m:s');
6160

6261

63-
// moment samples
64-
echo Zaman::moment(1494328806);
65-
echo Zaman::moment(strtotime('3 hours ago'));
66-
echo Zaman::moment(strtotime('2017-01-02 00:10:20'));
67-
echo Zaman::momentEn(1494334506);
62+
// Moment samples
63+
echo Zaman::moment(1494328806); // "May 2017"
64+
echo Zaman::moment(strtotime('3 hours ago')); // "3 ساعت قبل"
65+
echo Zaman::moment(strtotime('2017-01-02 00:10:20')); // "2 هفته قبل"
66+
echo Zaman::momentEn(1494334506); // "last month"
6867

69-
//in blader
68+
// Blade usage example
7069
{{ Zaman::gToj('2011-11-20 19:12:19') }}
7170

7271
```
7372

7473
### Date/Time formats
75-
[Supported format documentation](http://userguide.icu-project.org/formatparse/datetime)
74+
[Supported Formats Documentation](http://userguide.icu-project.org/formatparse/datetime)
7675

7776
## Team
7877

@@ -85,7 +84,7 @@ This component is developed by the following person(s) and a bunch of [awesome c
8584

8685
## Support this project
8786

88-
[![Donate via Paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LXEL22GFTXTKN)
87+
Please support the package by giving it :star: and contributing to its development.
8988

9089
## License
9190

0 commit comments

Comments
 (0)