Nepali DateNepali DateBikram Sambat Date Engine
Methods

Packagistdate->getMilliseconds()

Retrieve the millisecond component from zero to nine hundred ninety nine.

The getMilliseconds method returns the millisecond fraction of the current second as an integer from 0 to 999. It provides high resolution timing details for precision logging and event timestamping.


Import

use NepaliDateLibrary\NepaliDate;

Signature

public function getMilliseconds(): int;

Parameters

  • None.

Return Value

  • Type: int
  • Range: 0 to 999
  • Description: Millisecond integer between 0 and 999.

Example

use NepaliDateLibrary\NepaliDate;

$now = new NepaliDate();
echo "Milliseconds: " . $now->getMilliseconds();

Advertisement

On this page