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

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

# ChartVerticalLine.Time

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

## Time

Gets or sets the value on the Time line.

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
chartVerticalLine.Time: DateTime
```

### Returns

`DateTime` — 

### Examples

C#:

```csharp
var line = Chart.DrawVerticalLine("sessionStart", Bars.OpenTimes.LastValue, Color.Gray);
line.Time = Server.Time.Date;
Print("Vertical line time: {0}", line.Time);
```

Python:

```python
line = api.Chart.DrawVerticalLine("sessionStart", api.Bars.OpenTimes.LastValue, Color.Gray)
line.Time = api.Server.Time.Date
api.Print(f"Vertical line time: {line.Time}")
```

