Nepali DateNepali DateBikram Sambat Date Engine
Methods

Packagistdate->getMinutes()

Retrieve the minute component from zero to fifty nine for the current date instance.

The getMinutes method returns the minute value as an integer from 0 to 59 for the current NepaliDate instance. It is derived from the underlying timestamp representing the recorded time of the date object.


Import

use NepaliDateLibrary\NepaliDate;

Signature

public function getMinutes(): int;

Parameters

  • None.

Return Value

  • Type: int
  • Range: 0 to 59
  • Description: Minute integer between 0 and 59.

Example

use NepaliDateLibrary\NepaliDate;

$now = new NepaliDate();
echo "Current minute: " . $now->getMinutes();

Advertisement

On this page