---
id: "P:cAlgo.API.Internals.IServer.Time"
kind: "property"
type: "T:cAlgo.API.Internals.IServer"
url: "https://help.ctrader.com/ctrader-algo/references/Application/IServer/Time/"
---

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

# IServer.Time

Member of [IServer](https://help.ctrader.com/ctrader-algo/references/Application/IServer/index.md).

## Time

Returns the server time.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

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

Python:

```python
api.Server.Time: DateTime
```

### Returns

`DateTime` — 

### Examples

C#:

```csharp
protected override void OnTick()
{
    Print("The Server Time is: {0}", Server.Time);
}
```

Python:

```python
def on_tick(self):
    api.Print(f"The Server Time is: {api.Server.Time}")
```

