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]

(no description)

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

Defines 1 class

Time:: (4 methods):
  fromHMS()
  adjustSecond()
  adjustMinute()
  toIntWithNullBool()


Class: Time  - X-Ref

fromHMS($hour, $minute, $second)   X-Ref
TIME.

The TIME function returns a value that represents a particular time.

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

Excel Function:
TIME(hour,minute,second)

param: array|int $hour A number from 0 (zero) to 32767 representing the hour.
param: array|int $minute A number from 0 to 32767 representing the minute.
param: array|int $second A number from 0 to 32767 representing the second.
return: array|mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object,

adjustSecond(int &$second, int &$minute)   X-Ref
No description

adjustMinute(int &$minute, int &$hour)   X-Ref
No description

toIntWithNullBool($value)   X-Ref

param: mixed $value expect int