
## CreateUnitTimephased {#createunittimephased}

Creates and initializes a new instance of the Aspose::Tasks::TimephasedData class for unit-based time phased data of an assignment of a material resource.

**Returns:** A instance of the Aspose::Tasks::TimephasedData class for cost-based time phased data.

```cpp
CreateUnitTimephased(int32_t uid, System::DateTime start, System::DateTime finish, double units, Aspose::Tasks::TimephasedDataType type)
```

| Parameter | Description |
| --- | --- |
| uid | UID of the task. |
| start | Start date-time. |
| finish | Finish date-time. |
| units | Number of units. |
| type | Time-phased data type. |

