Enum RelativeDate
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
相対日付日付ベースの BooleanCriteria
で使用される値を計算するための相対日付オプションを表す列挙型。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
SpreadsheetApp.RelativeDate.TODAY
です。
プロパティ
プロパティ | タイプ | 説明 |
TODAY | Enum | 現在の日付と比較される日付。 |
TOMORROW | Enum | 現在の日付より後の日付と比較される日付。 |
YESTERDAY | Enum | 現在の日付より前の日付と比較される日付。 |
PAST_WEEK | Enum | 過去 1 週間以内の日付。 |
PAST_MONTH | Enum | 過去 1 か月以内の日付。 |
PAST_YEAR | Enum | 過去 1 年間の期間内の日付。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003e\u003ccode\u003eRelativeDate\u003c/code\u003e is used within \u003ccode\u003eBooleanCriteria\u003c/code\u003e for date-based comparisons in Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eIt offers various properties like \u003ccode\u003eTODAY\u003c/code\u003e, \u003ccode\u003ePAST_WEEK\u003c/code\u003e, etc., representing different relative date periods.\u003c/p\u003e\n"],["\u003cp\u003eTo use it, call the parent class, name, and property, for example, \u003ccode\u003eSpreadsheetApp.RelativeDate.TODAY\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum RelativeDate\n\nRelativeDate\n\nAn enumeration representing the relative date options for calculating a value to be used in\ndate-based [BooleanCriteria](/apps-script/reference/spreadsheet/boolean-criteria).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.RelativeDate.TODAY`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------|--------|----------------------------------------------------------|\n| `TODAY` | `Enum` | Dates compared against the current date. |\n| `TOMORROW` | `Enum` | Dates compared against the date after the current date. |\n| `YESTERDAY` | `Enum` | Dates compared against the date before the current date. |\n| `PAST_WEEK` | `Enum` | Dates that fall within the past week period. |\n| `PAST_MONTH` | `Enum` | Dates that fall within the past month period. |\n| `PAST_YEAR` | `Enum` | Dates that fall within the past year period. |"]]