add laravel 8
This commit is contained in:
1 parent
95d7007964
commit
babfe7b861
3 files changed
+18
-2
No files matched your search
+2
-2
@@ -12,8 +12,8 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2.5",
|
"php": "^7.2.5",
|
||||||
"hekmatinasser/notowo": "^1.0",
|
"hekmatinasser/notowo": "^1.0",
|
||||||
"illuminate/validation": "^5|^6|^7",
|
"illuminate/validation": "^5|^6|^7|^8",
|
||||||
"illuminate/support": "^5|^6|^7"
|
"illuminate/support": "^5|^6|^7|^8"
|
||||||
},
|
},
|
||||||
"require-dev" : {
|
"require-dev" : {
|
||||||
"phpunit/phpunit": "7.2.*",
|
"phpunit/phpunit": "7.2.*",
|
||||||
|
|||||||
@@ -89,6 +89,14 @@ $v = Verta::now(); //1396-02-02 15:32:08
|
|||||||
$v = Verta::today(); //1396-03-02 00:00:00
|
$v = Verta::today(); //1396-03-02 00:00:00
|
||||||
$v = Verta::tomorrow(); // 1396-03-03 00:00:00
|
$v = Verta::tomorrow(); // 1396-03-03 00:00:00
|
||||||
$v = Verta::yesterday(); // 1396-03-01 00:00:00
|
$v = Verta::yesterday(); // 1396-03-01 00:00:00
|
||||||
|
</pre>
|
||||||
|
<p>To get the current date and time similar datetime string, use the following command </p>
|
||||||
|
<pre>
|
||||||
|
$v = new Verta('now'); // 1399-06-18 15:32:08
|
||||||
|
$v = new Verta('-1 day'); //1399-06-17 15:07:04
|
||||||
|
$v = new Verta('+1 month'); //1399-07-17 16:51:09
|
||||||
|
$v = new Verta('next friday'); //1399-06-21 00:00:00
|
||||||
|
$v = new Verta('last sunday'); //1399-06-16 00:00:00
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>To convert your Gregorian datetime, use the following command</p>
|
<p>To convert your Gregorian datetime, use the following command</p>
|
||||||
|
|||||||
@@ -91,6 +91,14 @@ $v = Verta::now(); //1396-02-02 15:32:08
|
|||||||
$v = Verta::today(); //1396-03-02 00:00:00
|
$v = Verta::today(); //1396-03-02 00:00:00
|
||||||
$v = Verta::tomorrow(); // 1396-03-03 00:00:00
|
$v = Verta::tomorrow(); // 1396-03-03 00:00:00
|
||||||
$v = Verta::yesterday(); // 1396-03-01 00:00:00
|
$v = Verta::yesterday(); // 1396-03-01 00:00:00
|
||||||
|
</pre>
|
||||||
|
<p>برای بدست آوردن تاریخ و زمان به نسبت اکنون مانند تاریخ زمان پی اچ پی به صورت رشته استفاده است</p>
|
||||||
|
<pre>
|
||||||
|
$v = new Verta('now'); // 1399-06-18 15:32:08
|
||||||
|
$v = new Verta('-1 day'); //1399-06-17 15:07:04
|
||||||
|
$v = new Verta('+1 month'); //1399-07-17 16:51:09
|
||||||
|
$v = new Verta('next friday'); //1399-06-21 00:00:00
|
||||||
|
$v = new Verta('last sunday'); //1399-06-16 00:00:00
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>برای تبدیل تاریخ میلادی خود به شمسی، از دستور زیر استفاده کنید</p>
|
<p>برای تبدیل تاریخ میلادی خود به شمسی، از دستور زیر استفاده کنید</p>
|
||||||
|
|||||||
Reference in new issue
Block a user