# 勤務時間を割り出したい
勤務管理のテーブルを作っているのですが、例えば、9:00〜12:00まで働く......

**URL:** https://www.nocode-faq.com/t/topic/764
**Category:** Airtable
**Tags:** 演算処理
**Created:** [2021 年 2 月 2 日午前 10:36 UTC](https://www.nocode-faq.com/t/topic/764 "2021-02-02T10:36:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Question\_user](https://avatars.discourse-cdn.com/v4/letter/q/53a042/32.png) [@Question\_user](https://www.nocode-faq.com/u/Question_user)
#### Post date: [2021 年 2 月 2 日午前 10:36 UTC](https://www.nocode-faq.com/t/topic/764/1 "2021-02-02T10:36:42Z")

</div>

勤務時間を割り出したい  
勤務管理のテーブルを作っているのですが、例えば、9:00〜12:00まで働くと  
３時間勤務になると思いますが  
勤務時間を入力すると、計算できる関数などはありますでしょうか？？  
ご教授いただけると幸いです:man-bowing:

---

<div class="post-metadata">

### Author: ![Answer\_user](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Answer\_user](https://www.nocode-faq.com/u/Answer_user)
#### Post date: [2021 年 2 月 2 日午前 10:36 UTC](https://www.nocode-faq.com/t/topic/764/2 "2021-02-02T10:36:42Z")

</div>

DATETIME\_DIFF で集計が可能ですよ。  
その例なら、以下のような入力で計算できます。

DATETIME\_DIFF({End},{Start} ,‘h’)

ただし、カラムの型に関して、DATETIME\_DIFF はDuration（時間）には対応してないので、Date （日付込みの時間）で設定するようにしてください。

> **[Gyazo](https://gyazo.com/dcd978c41c9bb20753a87f1c96e1dd25)**

その他のDATETIME\_DIFF パラメーターはこちらから確認できます。

> **[Supported unit specifiers for DATETIME\_DIFF](https://support.airtable.com/hc/en-us/articles/226061308-Supported-unit-specifiers-for-DATETIME-DIFF)**
>
> The DATETIME\_DIFF() function will allow you to calculate the difference between two different datetimes in specified units. Each specifier has a corresponding abbreviation which will work the same ...

## 参考URL

> **[Gyazo](https://gyazo.com/dcd978c41c9bb20753a87f1c96e1dd25)**

> **[Supported unit specifiers for DATETIME\_DIFF](https://support.airtable.com/hc/en-us/articles/226061308-Supported-unit-specifiers-for-DATETIME-DIFF)**
>
> The DATETIME\_DIFF() function will allow you to calculate the difference between two different datetimes in specified units. Each specifier has a corresponding abbreviation which will work the same ...
