---
description: "Learn more about: Duration functions"
title: "Duration functions"
ms.date: 7/19/2022
ms.custom: "nonautomated-date"
---
# Duration functions

These functions create and manipulate duration values.

|Name|Description|
|------------|---------------|
|[Duration.Days](duration-days.md)|Returns the days portion of a duration.|
|[Duration.From](duration-from.md)|Returns a duration value from a value.|
|[Duration.FromText](duration-fromtext.md)|Returns a Duration value from a text value.|
|[Duration.Hours](duration-hours.md)|Returns the hours portion of a duration.|
|[Duration.Minutes](duration-minutes.md)|Returns the minutes portion of a duration.|
|[Duration.Seconds](duration-seconds.md)|Returns the seconds portion of a duration.|
|[Duration.ToRecord](duration-torecord.md)|Returns a record with parts of a Duration value.|
|[Duration.TotalDays](duration-totaldays.md)|Returns the total magnitude of days from a Duration value.|
|[Duration.TotalHours](duration-totalhours.md)|Returns the total magnitude of hours from a Duration value.|
|[Duration.TotalMinutes](duration-totalminutes.md)|Returns the total magnitude of minutes from a Duration value.|
|[Duration.TotalSeconds](duration-totalseconds.md)|Returns the total magnitude of seconds from a duration value.|
|[Duration.ToText](duration-totext.md)|Returns a text value from a Duration value.|
|[#duration](sharpduration.md)|Creates a duration value from days, hours, minutes, and seconds.|
