This is a translation of the original English documentation page. Help us make it better.

3 日時関数

ここにリストされているすべての機能は、次でサポートされています。

日時関数は、式だけでは使用できません。 ホスト項目を参照する少なくとも 1 つの非時間ベースの関数が式に存在する必要があります。

関数
説明 関数固有のパラメータ コメント
date
YYYYMMDD 形式の現在日付 例:
=> date()<20220101
dayofmonth
1 から 31 の範囲の日 例:
=> dayofmonth()=1
dayofweek
1 から 7 の範囲の曜日 (月 - 1, 日 - 7). 例:
=> dayofweek()<6
now
エポックからの秒数 (00:00:00 UTC, January 1, 1970). 例:
=> now()<1640998800
time
HHMMSS 形式の現在時刻 例:
=> time()>000000 and time()<060000

Function details

date

The current date in YYYYMMDD format.

Example:

date()<20220101
dayofmonth

The day of month in range of 1 to 31.

Example:

dayofmonth()=1
dayofweek

The day of week in range of 1 to 7 (Mon - 1, Sun - 7).

Example:

dayofweek()<6
now

The number of seconds since the Epoch (00:00:00 UTC, January 1, 1970).

Example:

now()<1640998800
time

The current time in HHMMSS format.

Example:

time()>000000 and time()<060000

See all supported functions.