Date.getMinutes() 會依本地時間回傳日期物件中的分鐘,範圍為 0 到 59。
new Date().getMinutes()
這個方法常用於時間格式化、時鐘元件與排程顯示。
若需要 UTC 分鐘,可使用 getUTCMinutes()。