Nepali DateNepali DateBikram Sambat Date Engine
Methods

date.get_milliseconds()

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

The get_milliseconds 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

from nepali_date_library import NepaliDate

Signature

def get_milliseconds(self) -> int:

Parameters

  • None.

Return Value

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

Example

from nepali_date_library import NepaliDate

now = NepaliDate()
print(f"Milliseconds: {now.get_milliseconds()}")

Advertisement

On this page