現在日時の取得
Time.now.strftime "%Y-%m-%d %H:%M:%S" Time.now.strftime "%Y-%m-%d %H:%M:%S.%3N"
Time.now.strftime "%s" Time.now.strftime "%s.%3N"
日時の形式変換
Time.at(1623028233).strftime "%Y-%m-%d %H:%M:%S" Time.at(1623028233.123).strftime "%Y-%m-%d %H:%M:%S.%3N"
現在の年,月,日,時,分,秒,曜日,UTC とのオフセットの取得