# 日付関数と時間関数

日付と時刻関数は、日付や時刻の値に対して演算を行い、時間に関する情報の計算、抽出、または書式設定を実行して、その結果を返します。

Qlik Open Lakehouse では次の関数を使用できます。

| 関数 | 説明 |
| --- | --- |
| [ADD_TIME_ZONE_OFFSET](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/add_time_zone_offset.htm) | 日付にタイムゾーン オフセットを追加します。タイムゾーン オフセットは、Java's ZoneId.of メソッドで受け入れられる標準形式 (America/New\_York, +0200 など) のいずれかになります。 |
| [DATE](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/date.htm) | 文字列を日付にキャストします |
| [DATE_ADD](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/date_add.htm) | タイムスタンプに、指定された単位のインターバル値を追加します。負の値を指定することで、減算も実行できます。 |
| [DATE_DIFF](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/date_diff.htm) | timestamp2 から timestamp1 を減算し、指定された単位でその差を返します |
| [DATE_TRUNC](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/date_trunc.htm) | 日付を指定された単位に切り捨てます |
| [DAY](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/day.htm) | タイムスタンプから、月の日を返します |
| [DAY_OF_WEEK](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/day_of_week.htm) | タイムスタンプから ISO 形式の曜日を返します。値の範囲は 1 (月曜日) から 7 (日曜日) です |
| [DAY_OF_YEAR](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/day_of_year.htm) | タイムスタンプから、年の日を返します。値の範囲は 1 から 366 です |
| [EXTRACT_TIMESTAMP](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/extract_timestamp.htm) | 日付またはタイムスタンプの文字列を、日付形式を自動検出して、日付またはタイムスタンプに変換します |
| [FORMAT_DATETIME](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/format_datetime.htm) | 日時を文字列に変換します |
| [FROM_ISO8601_DATE](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/from_iso8601_date.htm) | ISO 8601 形式の文字列を解析し、日付に変換します |
| [FROM_UNIXTIME](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/from_unixtime.htm) | エポック秒をタイムスタンプに変換します |
| [HOUR](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/hour.htm) | タイムスタンプから、1 日のうちの時間を返します。値の範囲は 0 から 23 です |
| [MILLISECOND](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/millisecond.htm) | タイムスタンプから、秒のミリ秒部分を返します。 |
| [MINUTE](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/minute.htm) | タイムスタンプから、時刻の分を返します。 |
| [MONTH](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/month.htm) | タイムスタンプから、年の月を返します。 |
| [QUARTER](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/quarter.htm) | タイムスタンプから、年の四半期を返します。値の範囲は 1 から 4 です |
| [RUN_END_TIME](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/run_end_time.htm) | ジョブ実行の終了時刻を返します |
| [RUN_START_TIME](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/run_start_time.htm) | ジョブ実行の開始時刻を返します |
| [SECOND](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/second.htm) | タイムスタンプから、分の秒を返します |
| [SUBTRACT_TIME_ZONE_OFFSET](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/subtract_time_zone_offset.htm) | 日付からタイムゾーンのオフセットを減算します。タイムゾーン オフセットは、Java's ZoneId.of メソッドで受け入れられる標準形式 (America/New\_York, +0200 など) のいずれかになります |
| [TO_UNIXTIME](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/to_unixtime.htm) | 日付を、ミリ秒の小数部を含むエポック (Unix) 秒表現に変換します |
| [TO_UNIX_EPOCH_MILLIS](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/to_unix_epoch_millis.htm) | 日付をエポック (Unix) 秒表現に変換します |
| [TO_UNIX_EPOCH_SECONDS](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/to_unix_epoch_seconds.htm) | 日付をエポック (Unix) 秒表現に変換します |
| [WEEK](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/week.htm) | タイムスタンプから、年の ISO 形式の週を返します。値の範囲は 1 から 53 です |
| [YEAR](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/year.htm) | タイムスタンプから、年を返します。 |
| [YEAR_OF_WEEK](https://help.qlik.com/ja-JP/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/date-and-time/year_of_week.htm) | タイムスタンプから、ISO 形式の週の年を返します |