---
updatedAt: 2025-12-05T18:41:41.000Z
agentTools:
  projectIndex: https://docs.observeinc.com/llms.txt
---

# row_end_time

Aliases: `row_endtime` (deprecated).

```
row_end_time() -> timestamp
```

Returns the value of the "Valid To" column, or null if the verb input dataset has no "Valid To" column.

# Domain

This is a scalar function (calculates a single output value for a single input row).

# Categories

* [Time](function#time-functions)

# Examples

<OpalCodeBlock code={
`make_col time_taken:if_null(row_end_time() - row_start_time(), 0s)
`}/>

Create a column time\_taken that is the duration of the state within the row.