Merge branch 'master' of https://github.com/hekmatinasser/verta
This commit is contained in:
commit
03f2ec64aa
2 files changed
+5
-4
No files matched your search
@@ -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');
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
theme: jekyll-theme-cayman
|
||||
Reference in new issue
Block a user