> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ninjatrader.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.ninjatrader.com/_mcp/server.

# Time

## Definition

A collection of historical bar time stamp values.

## Property Value

An **ISeries\<datetime>** object.

## Syntax

`Time`

**Returns a DateTime structure**

`Time[int barsAgo]`

## Examples

```csharp
// Prints the current bar time stamp
Print(Time[0].ToString());

//Checks if current time is greater than the bar time stamp
if (DateTime.Now.Ticks > Time[0].Ticks)
 Print("Do something");
```