Files
verta/src/Verta.php
T
2022-08-22 17:32:12 +00:00

22 lines
377 B
PHP
Executable File

<?php
namespace Hekmatinasser\Verta;
use Exception;
use Hekmatinasser\Jalali\Jalali;
use Illuminate\Support\Carbon;
class Verta extends Jalali
{
/**
* Create a Carbon instance from Verta
*
* @return Carbon
* @throws Exception
*/
public function toCarbon(): Carbon
{
return new Carbon($this->datetime(), $this->timezone);
}
}