---
title: "ContextPeriod constructor"
url: "https://reference.aspose.com/finance/python-net/aspose.finance.xbrl/contextperiod/__init__/"
product: "Aspose.Finance for Python via .NET API References"
---


## ContextPeriod(instant_date) {#DateTime}



```python
def __init__(self, instant_date):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| instant_date | DateTime |  |


## ContextPeriod(peroid_type) {#ContextPeriodType}



```python
def __init__(self, peroid_type):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| peroid_type | [ContextPeriodType](/finance/python-net/aspose.finance.xbrl/contextperiodtype) |  |


## ContextPeriod(start_date, end_date) {#DateTime-DateTime}



```python
def __init__(self, start_date, end_date):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| start_date | DateTime |  |
| end_date | DateTime |  |



### See Also
* module [aspose.finance.xbrl](../../)
* class [ContextPeriod](/finance/python-net/aspose.finance.xbrl/contextperiod)
