getUTCMinutes()
メソッドは、協定世界時に基づき、指定された日時の「分」を返します。
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
構文
dateObj.getUTCMinutes()
返値
協定世界時に基づき、与えられた日時の「分」を表す 0 から 59 までの間の整数値。
例
getUTCMinutes() の使用
次の例は、現在時刻の「分」部を変数 minutes
に代入します。
var today = new Date();
var minutes = today.getUTCMinutes();
仕様書
ブラウザーの互換性
BCD tables only load in the browser