diff --git a/composer.json b/composer.json index d2cf394..cf59fe1 100755 --- a/composer.json +++ b/composer.json @@ -12,8 +12,8 @@ "require": { "php": "^7.2.5", "hekmatinasser/notowo": "^1.0", - "illuminate/validation": "^5|^6|^7", - "illuminate/support": "^5|^6|^7" + "illuminate/validation": "^5|^6|^7|^8", + "illuminate/support": "^5|^6|^7|^8" }, "require-dev" : { "phpunit/phpunit": "7.2.*", diff --git a/docs/en/index.html b/docs/en/index.html index 793fdcf..03c252c 100644 --- a/docs/en/index.html +++ b/docs/en/index.html @@ -89,6 +89,14 @@ $v = Verta::now(); //1396-02-02 15:32:08 $v = Verta::today(); //1396-03-02 00:00:00 $v = Verta::tomorrow(); // 1396-03-03 00:00:00 $v = Verta::yesterday(); // 1396-03-01 00:00:00 + +

To get the current date and time similar datetime string, use the following command

+
+$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
 

To convert your Gregorian datetime, use the following command

diff --git a/docs/index.html b/docs/index.html index 4771357..3703398 100644 --- a/docs/index.html +++ b/docs/index.html @@ -91,6 +91,14 @@ $v = Verta::now(); //1396-02-02 15:32:08 $v = Verta::today(); //1396-03-02 00:00:00 $v = Verta::tomorrow(); // 1396-03-03 00:00:00 $v = Verta::yesterday(); // 1396-03-01 00:00:00 + +

برای بدست آوردن تاریخ و زمان به نسبت اکنون مانند تاریخ زمان پی اچ پی به صورت رشته استفاده است

+
+$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
 

برای تبدیل تاریخ میلادی خود به شمسی، از دستور زیر استفاده کنید