カレント タイムは、currentTime コマンドを使用して設定することができます。
currentTime コマンドを照会してカレント タイムを返すことができます。カレント タイムの書式は、currentUnit コマンドで制御されます。
次のコマンドを実行すると、$time 変数にカレント タイムが秒単位で格納されます。
// Save the current time unit in a variable
string $timeFormat = `currentUnit -query -time`;
// Set the current time unit to seconds
currentUnit -time sec;
// Store the current time in $time
float $time = `currentTime -q`;
// Restore the original time unit we saved earlier
currentUnit -time $timeFormat;