Skip to content

fnc c0030 transFrameToTimer

tickle edited this page Apr 14, 2021 · 4 revisions

← オブジェクトリファレンスに戻る

transFrameToTimer

概要

  • フレーム数を分:秒の形式に変換する関数。

引数(括弧内はデフォルト値)

引数 必須 指定内容
_frame number フレーム数

返却値

  • 分:秒の書式に変換した文字列

使用例

console.log(transFrameToTimer(300)); // 0:05
console.log(transFrameToTimer(320)); // 0:05 ※端数切り捨て
console.log(transFrameToTimer(7260)); // 2:01

補足

  • 端数フレーム数は切り捨てる。

関連項目

更新履歴

Version 変更内容
v20.3.1 ・初回実装

English | Japanese

How To Play
(プレイ方法)

How To Make
(作り方、移行方法)

How To Upgrade? / What's New?
(本体の更新方法、更新情報)

Specification (for creators)
(仕様・製作者向け)

Specification (for developers)
(仕様・開発者向け)

Tips
(用途別対処方法)

Repository Local Rules
(リポジトリルール・管理者向け)

Others
(その他)

Clone this wiki locally