fix method name

This commit is contained in:
Nasser committed 2020-04-17 15:27:36 +04:30
1 parent 900525b087
commit 629213f566
4 files changed
+20 -19

No files matched your search

+4 -4
View File
@@ -148,11 +148,11 @@ return Verta::getGregorian(1394,10,4); // [2015,12,25]
</pre>
<p>Verta to Datatime PHP, use the following command</p>
<pre>
$dt = verta()->DateTime();
$dt = verta()->datetime();
</pre>
<p>Verta to Carbon, use the following command</p>
<pre>
$c = Carbon::instance($v->DateTime());
$c = Carbon::instance($v->datetime());
</pre>
<h3 id="property">Property</h3>
<p>To get property, use the following command</p>
@@ -326,8 +326,8 @@ return $v->endYear(); // 1396-12-29 23:59:59
<p>To validate datetime, use the following command</p>
<pre>
return Verta::isLeapYear(1394); // false
return Verta::isValideDate(1394, 12, 30); // false
return Verta::isValideTime(15, 12, 30); // true
return Verta::isValidDate(1394, 12, 30); // false
return Verta::isValidTime(15, 12, 30); // true
</pre>
<p>To difference datetime together, use the following command</p>
<pre>
+4 -4
View File
@@ -149,11 +149,11 @@ return Verta::getGregorian(1394,10,4); // [2015,12,25]
</pre>
<p>برای تبدیل تاریخ از ورتا به تاریخ و زمان پی اچ پی، از دستور زیر استفاده کنید</p>
<pre>
$dt = verta()->DateTime();
$dt = verta()->datetime();
</pre>
<p>برای تبدیل تاریخ از ورتا به کربن، از دستور زیر استفاده کنید</p>
<pre>
$c = Carbon::instance($v->DateTime());
$c = Carbon::instance($v->datetime());
</pre>
<h3 id="property">خصوصیات</h3>
<p>برای دریافت مقادیر خصوصیات، از دستورات زیر استفاده کنید</p>
@@ -327,8 +327,8 @@ return $v->endYear(); // 1396-12-29 23:59:59
<p>برای اعتبار سنجی تاریخ، از دستور زیر استفاده کنید</p>
<pre>
return Verta::isLeapYear(1394); // false
return Verta::isValideDate(1394, 12, 30); // false
return Verta::isValideTime(15, 12, 30); // true
return Verta::isValidDate(1394, 12, 30); // false
return Verta::isValidTime(15, 12, 30); // true
</pre>
<p>برای محاسبه اختلاف تاریخ ها با یکدیگر، از دستور زیر استفاده کنید</p>
<pre>