# Timeline

#### new Cesium.Timeline(container, clock)
widgets/Source/Timeline/Timeline.js 103

The Timeline is a widget for displaying and controlling the current scene time.

Name | Type | Description
--- | --- | ---
`container` | Element | The parent HTML container node for this widget.
`clock` | Clock | The clock to use.

### Members

#### container : Element
widgets/Source/Timeline/Timeline.js 121

Gets the parent container.

### Methods

#### destroy()
widgets/Source/Timeline/Timeline.js 217

Destroys the widget. Should be called if permanently removing the widget from layout.

#### isDestroyed() → boolean
widgets/Source/Timeline/Timeline.js 209

##### Returns:

true if the object has been destroyed, false otherwise.

#### resize()
widgets/Source/Timeline/Timeline.js 989

Resizes the widget to match the container size.

#### zoomTo(startTime, stopTime)
widgets/Source/Timeline/Timeline.js 273

Sets the view to the provided times.

Name | Type | Description
--- | --- | ---
`startTime` | JulianDate | The start time.
`stopTime` | JulianDate | The stop time.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.