Methods
date.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
import { NepaliDate } from "nepali-date-library";Signature
getMinutes(): number;Parameters
- None.
Return Value
- Type:
number - Range:
0to59
Example
import { NepaliDate } from "nepali-date-library";
const date = new NepaliDate();
console.log(date.getMinutes()); // e.g. 35Related
date.getHours(): Retrieve the hour component.date.getSeconds(): Retrieve the second component.
Advertisement
date.getHours()
Retrieve the hour component from zero to twenty three for the current date instance.
date.getSeconds()
Retrieve the second component from zero to fifty nine for the current date instance.