SetTimeBeforeNow Method

Sets the time for a Chart based on a value that is some time before the current time.

Syntax

object.SetTimeBeforeNow hours, minutes, seconds

Properties

The SetTimeBeforeNow method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

hours

Long. The number of hours before now to set the Chart to.

minutes

Long. The number of minutes before now to set the Chart to.

seconds

Long. The number of seconds before now to set the Chart to.

Remarks

Calling the SetTimeBeforeNow method with an hours parameter of 2, minutes parameter of 0 and seconds parameter of 0 causes the Chart to display data that occurred 2 hours before the current time. This eliminates the need to calculate the Chart time based on the current time.

 

Example

Applies To