diff --git a/README.md b/README.md index 4bfe6d8..5ac08d9 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,13 @@ use EasyBanglaDate\Types\DateTime as EnDateTime; require 'autoload.php' -$gregorian = new EnDateTime('now', new DateTimeZone('Asia/Dhaka')); -$bongabda = new BnDateTime('now', new DateTimeZone('Asia/Dhaka')); +$bongabda = new BnDateTime('2016-04-22 05:26:47 pm', new DateTimeZone('Asia/Dhaka')); +$bongabda->setDate(1398, 1, 1); -echo $gregorian->format('l jS F Y b h:i:s'); -echo $bongabda->format('l jS F Y b h:i:s'); +echo $bongabda->format('l jS F Y b h:i:s') . PHP_EOL ; +echo $bongabda->enFormat('l jS F Y h:i:s a') . PHP_EOL; +echo $bongabda->getDateTime()->format('l jS F Y b h:i:s'). PHP_EOL; +echo $bongabda->getDateTime()->enFormat('l jS F Y h:i:s A') . PHP_EOL; ``` diff --git a/screenshot.jpeg b/screenshot.jpeg index ea169c3..d7efd5d 100644 Binary files a/screenshot.jpeg and b/screenshot.jpeg differ