Update README.md

This commit is contained in:
hekmatinasser authored and GitHub committed 2017-05-24 08:47:05 +04:30
1 parent d9b5296346
commit 36d7e6f56e
1 file changed
+4 -4
+4 -4
View File
@@ -41,10 +41,10 @@ use \Verta as Verta ;`
// default timestamp is now
$dt = new Verta();
// OR
$dt = Verta::now();
return Verta::today(); //1396-03-02 00:00:00
return Verta::tomorrow(); // 1396-03-03 00:00:00
return Verta::yesterday(); // 1396-03-01 00:00:00
$dt = Verta::now(); //1396-02-02 15:32:08
$dt = Verta::today(); //1396-03-02 00:00:00
$dt = Verta::tomorrow(); // 1396-03-03 00:00:00
$dt = Verta::yesterday(); // 1396-03-01 00:00:00
// pass string datetime
$dt = new Verta('2016-12-27 14:12:32');