Update README.md
This commit is contained in:
1 parent
d9b5296346
commit
36d7e6f56e
1 file changed
+4
-4
@@ -41,10 +41,10 @@ use \Verta as Verta ;`
|
|||||||
// default timestamp is now
|
// default timestamp is now
|
||||||
$dt = new Verta();
|
$dt = new Verta();
|
||||||
// OR
|
// OR
|
||||||
$dt = Verta::now();
|
$dt = Verta::now(); //1396-02-02 15:32:08
|
||||||
return Verta::today(); //1396-03-02 00:00:00
|
$dt = Verta::today(); //1396-03-02 00:00:00
|
||||||
return Verta::tomorrow(); // 1396-03-03 00:00:00
|
$dt = Verta::tomorrow(); // 1396-03-03 00:00:00
|
||||||
return Verta::yesterday(); // 1396-03-01 00:00:00
|
$dt = Verta::yesterday(); // 1396-03-01 00:00:00
|
||||||
|
|
||||||
// pass string datetime
|
// pass string datetime
|
||||||
$dt = new Verta('2016-12-27 14:12:32');
|
$dt = new Verta('2016-12-27 14:12:32');
|
||||||
|
|||||||
Reference in new issue
Block a user