make_datetime()

指定した日付と時刻の間に datetime スカラー値を作成します。

構文

make_datetime()

make_datetime(時間)

make_datetime(時間)

構文規則について詳しく知る。

パラメーター

名前 必須 説明
year int ✔️ 0 から 9999 までの年の値。
month int ✔️ 1 ~ 12 の月の値。
day int ✔️ 月に応じて、1 から 28 から 31 までの日の値。
hour int 0 から 23 までの時間値。
minute int 0 から 59 までの分の値。
second double 0 から 59.99999999 までの 2 番目の値。

戻り値

成功した場合、結果は datetime 値になります。それ以外の場合、結果は null になります。

print year_month_day = make_datetime(2017,10,01)

出力

year_month_day
2017-10-01 00:00:00.0000000
print year_month_day_hour_minute = make_datetime(2017,10,01,12,10)

出力

year_month_day_hour_minute
2017-10-01 12:10:00.0000000
print year_month_day_hour_minute_second = make_datetime(2017,10,01,12,11,0.1234567)

出力

year_month_day_hour_minute_second
2017-10-01 12:11:00.1234567