ReferenceDateTimeDateTime():utc()✦Use with AI▾このページの見出しDateTime():utc() DateTime オブジェクトのタイムゾーンを UTC に変換します。 シグネチャ utc(): DateTime 戻り値 型: DateTime 現在の DateTime インスタンス。タイムゾーンが UTC に設定され、メソッドチェーンが可能です。 例 local now = DateTime()toast("Local time: " .. now:format("yyyy-MM-dd HH:mm:ss Z"))now:utc()toast("UTC time: " .. now:format("yyyy-MM-dd HH:mm:ss Z"))