4.3.2.8. 時間関数
以下の関数は、一般的な時間演算をサポートしています。
- day of year( date )
その年のその日のグレゴリオ暦の数値を返します。
Expand 表4.61 パラメーター パラメーター タイプ datedateまたはdate and time例
day of year( date(2019, 9, 17) ) = 260- day of week( date )
グレゴリオ暦の曜日 (
"Monday"、"Tuesday"、"Wednesday"、"Thursday"、"Friday"、"Saturday"、または"Sunday") を返します。Expand 表4.62 パラメーター パラメーター タイプ datedateまたはdate and time例
day of week( date(2019, 9, 17) ) = "Tuesday"- month of year( date )
グレゴリオ暦の月 (
"January"、"February"、"March"、"April"、"May"、"June"、"July"、"August"、"September"、"October"、"November"、または"December") を返します。Expand 表4.63 パラメーター パラメーター タイプ datedateまたはdate and time例
month of year( date(2019, 9, 17) ) = "September"- month of year( date )
ISO 8601 で定義されているグレゴリオ暦の週を返します。
Expand 表4.64 パラメーター パラメーター タイプ datedateまたはdate and time例
week of year( date(2019, 9, 17) ) = 38 week of year( date(2003, 12, 29) ) = 1 week of year( date(2004, 1, 4) ) = 1 week of year( date(2005, 1, 1) ) = 53 week of year( date(2005, 1, 3) ) = 1 week of year( date(2005, 1, 9) ) = 1