Skip to content

Commit

Permalink
Example code updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ronisaha committed Feb 5, 2015
1 parent 0298261 commit 3d2ab50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

```

Expand Down
Binary file modified screenshot.jpeg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d2ab50

Please sign in to comment.