> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-center-3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-center-3/data-center/data-preparation/data-preparation-workspace/transforms/conversions.md).

# Conversions

## **Convert Duration**

The transform converts any duration (day, hour, minute, seconds, milliseconds) to any specified duration.

To perform the transform, select the column which has the duration to be converted and specify the duration type.

{% hint style="success" %}
*Check out the given illustration on how to apply Convert Duration.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIctE5LjGWDD6zEdW4vpJ%2Fuploads%2FoVuXOx1xSl5wMlFeaZC7%2FConversions_ConvertDuration.mp4?alt=media&token=3cbfda89-ca23-4fcc-a6db-76979c97f2eb>" %}
***Convert Duration***
{% endembed %}

* Select a column from the data set with the time duration.
* Navigate to the ***Transforms*** tab.
* Select the ***Convert Duration*** transform from the ***Conversion*** category.
* Enable the **Create new column** option to create a new column.
* **From:** The type of source interval
* **To:** The type of destination interval
* **Precision:** The decimal points to be retained.
* Click the ***Submit*** option.&#x20;

<figure><img src="https://content.gitbook.com/content/IctE5LjGWDD6zEdW4vpJ/blobs/oq33yySfaKW7Gnk385Ym/image.png" alt=""><figcaption><p><em><strong>Applying the Convert Duration transform</strong></em></p></figcaption></figure>

* The selected column values undergo a transformation to align with the chosen conversion duration. E.g., For instance, in this scenario, the selected column values undergo a conversion, transitioning from the unit of ***days*** to ***hours***.

<figure><img src="https://content.gitbook.com/content/IctE5LjGWDD6zEdW4vpJ/blobs/dYxyjWfJDxwR5txAWHy3/image.png" alt=""><figcaption><p><em><strong>Column with the transformed values</strong></em></p></figcaption></figure>
