多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

---
title: 'Duration'
description: 'This article explains how to create & work with a Duration field.'
tags: ['Fields', 'Field types', 'Date & Time']
keywords: ['Fields', 'Field types', 'Date & Time', 'Create duration field']
---
`Duration` field type is used to store duration of time in seconds or minutes. Different formats are supported by NocoDB, as detailed in the table below.
## Create a duration field
1. Click on `+` icon to the right of `Fields header`
2. On the dropdown modal, enter the field name (Optional).
3. Select the field type as `Duration` from the dropdown.
4. Configure `Duration Format`
5. Configure default value (Optional)
6. Click on `Save Field` button.
![image](/img/v2/fields/types/duration.png)
### Supported duration formats
| Format | Example |
|--------------|--------------|
| HH:mm | 14:20 |
| HH:mm:ss | 12:45:30 |
| HH:mm:ss.s | 12:45:30.5 |
| HH:mm.ss.ss | 12:45.30.50 |
| HH:mm.ss.sss | 12:45.30.500 |
## Related fields
- [DateTime](010.date-time.md)
- [Date](020.date.md)
- [Time](030.time.md)