ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Current.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel
;
4
5
use
DateTimeImmutable
;
6
use
PhpOffice\PhpSpreadsheet\Calculation\Functions
;
7
8
class
Current
9
{
27
public
static
function
today
()
28
{
29
$dti =
new
DateTimeImmutable
();
30
$dateArray = date_parse($dti->format(
'c'
));
31
32
return
is_array($dateArray) ?
Helpers::returnIn3FormatsArray
($dateArray,
true
) :
Functions::VALUE
();
33
}
34
52
public
static
function
now
()
53
{
54
$dti =
new
DateTimeImmutable
();
55
$dateArray = date_parse($dti->format(
'c'
));
56
57
return
is_array($dateArray) ?
Helpers::returnIn3FormatsArray
($dateArray) :
Functions::VALUE
();
58
}
59
}
PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel
Definition:
Constants.php:3
DateTimeImmutable
PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Current
Definition:
Current.php:8
PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Current\today
static today()
DATENOW.
Definition:
Current.php:27
PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Helpers\returnIn3FormatsArray
static returnIn3FormatsArray(array $dateArray, bool $noFrac=false)
Return result in one of three formats.
Definition:
Helpers.php:138
Functions
php
PhpOffice\PhpSpreadsheet\Calculation\Functions\VALUE
static VALUE()
VALUE.
Definition:
Functions.php:229
PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel\Current\now
static now()
DATETIMENOW.
Definition:
Current.php:52
libs
composer
vendor
phpoffice
phpspreadsheet
src
PhpSpreadsheet
Calculation
DateTimeExcel
Current.php
Generated on Thu Feb 27 2025 19:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)