> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreDurationUnit

> XStoreDurationUnit

# XStoreDurationUnit

Units of a duration value.

## Syntax

```cpp theme={null}
enum class XStoreDurationUnit  : uint32_t  
{  
    Minute = 0,  
    Hour = 1,  
    Day = 2,  
    Week = 3,  
    Month = 4,  
    Year = 5,  
}  
```

## Constants

| Constant | Description             |
| -------- | ----------------------- |
| Minute   | Duration is in minutes. |
| Hour     | Duration is in hours.   |
| Day      | Duration is in days.    |
| Week     | Duration is in weeks.   |
| Month    | Duration is in months.  |
| Year     | Duration is in years.   |

## Remarks

**XStoreDurationUnit** is a member of the [XStoreSubscriptionInfo](/reference/system/xstore/structs/xstoresubscriptioninfo) struct. It describes two different values, the amount of time that a subscription can be used on a trial basis, and the billing period which determines how often the subscription must be paid for. The **XStoreDurationUnit** is not used to make up a time stamp and only one value is used at a time to describe a subscription period. For example a trial period measured in weeks, or a billing period measured in months.

## Requirements

**Header:** XStore.h (included in XGameRuntime.h)

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XStore](/reference/system/xstore/xstore_members)\
[XStoreSubscriptionInfo](/reference/system/xstore/structs/xstoresubscriptioninfo)


## Related topics

- [XStoreSubscriptionInfo](/reference/system/xstore/structs/xstoresubscriptioninfo.md)
- [XStore](/reference/system/xstore/xstore_members.md)
- [Economy V2 Limits](/services/playfab/economy-monetization/economy-v2/limits.md)
- [PFCatalogCatalogPrice](/services/playfab/api-references/c/pfcatalogtypes/structs/pfcatalogcatalogprice.md)
- [Set up a usage-limited trial](/publishing/game-publishing/how-to/how-to-create-usage-limited-free-trials.md)
