Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

(no description)

File Size: 157 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DateValue:: (4 methods):
  fromString()
  t1ToString()
  setUpArray()
  finalResults()


Class: DateValue  - X-Ref

fromString($dateValue)   X-Ref
DATEVALUE.

Returns a value that represents a particular date.
Use DATEVALUE to convert a date represented by a text string to an Excel or PHP date/time stamp
value.

NOTE: When used in a Cell Formula, MS Excel changes the cell format so that it matches the date
format of your regional settings. PhpSpreadsheet does not change cell formatting in this way.

Excel Function:
DATEVALUE(dateValue)

param: array|string $dateValue Text that represents a date in a Microsoft Excel date format.
return: mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,

t1ToString(array $t1, DateTimeImmutable $dti, bool $yearFound)   X-Ref
No description

setUpArray(string $dateValue, DateTimeImmutable $dti)   X-Ref
Parse date.


finalResults(array $PHPDateArray, DateTimeImmutable $dti, int $baseYear)   X-Ref
Final results.

return: mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,