Ruby 3.1 リファレンスマニュアル > ライブラリ一覧 > dateライブラリ > Timeクラス > to_time
to_time -> Time
対応する Time オブジェクトを返します。