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

# 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](https://docs.xbox.com/reference/system/xstore/structs/xstoresubscriptioninfo.md) 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](https://docs.xbox.com/reference/system/xstore/xstore_members.md)\
[XStoreSubscriptionInfo](https://docs.xbox.com/reference/system/xstore/structs/xstoresubscriptioninfo.md)


## Related topics

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