# ClockViewModel

#### new Cesium.ClockViewModel(clock)
widgets/Source/ClockViewModel.js 19

A view model which exposes a `Clock` for user interfaces.

Name | Type | Description
--- | --- | ---
`clock` | Clock | optional The clock object wrapped by this view model, if undefined a new instance will be created.

##### See:

- Clock

### Members

#### canAnimate : boolean
widgets/Source/ClockViewModel.js 117

Gets or sets whether the clock can animate. See `Clock#canAnimate`. This property is observable.

#### clock : Clock
widgets/Source/ClockViewModel.js 154

Gets the underlying Clock.

#### clockRange : ClockRange
widgets/Source/ClockViewModel.js 105

Gets or sets the clock range setting. See `Clock#clockRange`. This property is observable.

#### clockStep : ClockStep
widgets/Source/ClockViewModel.js 93

Gets or sets the clock step setting. See `Clock#clockStep`. This property is observable.

#### currentTime : JulianDate
widgets/Source/ClockViewModel.js 68

Gets or sets the current time. See `Clock#currentTime`. This property is observable.

#### multiplier : number
widgets/Source/ClockViewModel.js 81

Gets or sets the clock multiplier. See `Clock#multiplier`. This property is observable.

#### shouldAnimate : boolean
widgets/Source/ClockViewModel.js 129

Gets or sets whether the clock should animate. See `Clock#shouldAnimate`. This property is observable.

#### startTime : JulianDate
widgets/Source/ClockViewModel.js 42

Gets or sets the start time of the clock. See `Clock#startTime`. This property is observable.

#### stopTime : JulianDate
widgets/Source/ClockViewModel.js 55

Gets or sets the stop time of the clock. See `Clock#stopTime`. This property is observable.

#### systemTime : JulianDate
widgets/Source/ClockViewModel.js 33

Gets the current system time. This property is observable.

### Methods

#### destroy()
widgets/Source/ClockViewModel.js 191

Destroys the view model. Should be called to properly clean up the view model when it is no longer needed.

#### isDestroyed() → boolean
widgets/Source/ClockViewModel.js 183

##### Returns:

true if the object has been destroyed, false otherwise.

#### synchronize()
widgets/Source/ClockViewModel.js 166

Updates the view model with the contents of the underlying clock. Can be called to force an update of the viewModel if the underlying clock has changed and `Clock.tick` has not yet been called.

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