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 NepaliDateSignature
def get_milliseconds(self) -> int:Parameters
- None.
Return Value
- Type:
int - Range:
0to999 - Description: Millisecond integer between 0 and 999.
Example
from nepali_date_library import NepaliDate
now = NepaliDate()
print(f"Milliseconds: {now.get_milliseconds()}")Related
date.get_time(): Retrieve epoch timestamp in milliseconds.date.get_seconds(): Retrieve second component.
Advertisement
date.get_seconds()
Retrieve the second component from zero to fifty nine for the current date instance.
date.get_time()
Retrieve the numeric timestamp in milliseconds since the Unix epoch.