4.3.2.8. Temporal functions


The following functions support general temporal operations.

day of year( date )

Returns the Gregorian number of the day of the year.

Expand
表4.61 Parameters
ParameterType

date

date or date and time

Example

day of year( date(2019, 9, 17) ) = 260

day of week( date )

Returns the Gregorian day of the week: "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", or "Sunday".

Expand
表4.62 Parameters
ParameterType

date

date or date and time

Example

day of week( date(2019, 9, 17) ) = "Tuesday"

month of year( date )

Returns the Gregorian month of the year: "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", or "December".

Expand
表4.63 Parameters
ParameterType

date

date or date and time

Example

month of year( date(2019, 9, 17) ) = "September"

month of year( date )

Returns the Gregorian week of the year as defined by ISO 8601.

Expand
表4.64 Parameters
ParameterType

date

date or date and time

Examples

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

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る