---
id: "P:cAlgo.API.ChartText.Time"
kind: "property"
type: "T:cAlgo.API.ChartText"
url: "https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartText/Time/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartText.Time

Member of [ChartText](https://help.ctrader.com/ctrader-algo/references/Chart/Drawings/ChartText/index.md).

## Time

Gets or sets the Time line value.

Environments: Desktop supported · CLI works differently · Cloud works differently.

- CLI: Created and kept with all its properties, but never drawn: the CLI displays no chart.
- Cloud: Created and kept with all its properties, but never drawn: the cloud displays no chart.

C#:

```csharp
DateTime Time {get; set;}
```

Python:

```python
chartText.Time: DateTime
```

### Returns

`DateTime` — 

### Examples

C#:

```csharp
var text = Chart.DrawText("label", "High", Bars.OpenTimes.LastValue, Bars.HighPrices.LastValue, Color.White);
text.Time = Bars.OpenTimes.Last(1);
Print("Text time: {0}", text.Time);
```

Python:

```python
text = api.Chart.DrawText("label", "High", api.Bars.OpenTimes.LastValue, api.Bars.HighPrices.LastValue, Color.White)
text.Time = api.Bars.OpenTimes.Last(1)
api.Print(f"Text time: {text.Time}")
```

