Date.getUTCHours() 會以 UTC 時區回傳日期物件中的小時,範圍為 0 到 23。
date.getUTCHours()
這個方法適合用於跨時區日誌或伺服器時間處理。
若需要本地小時,可使用 getHours()。