TimePeriodDuration property (TrendPro object)

Returns or sets the duration for the current time period. To set this property, the TimePeriodAbsoluteMode property must be set to
False
. Read/write. String.
Syntax
TrendPro1
.
TimePeriodDuration
[ =
value
]
where
TrendPro1
- is the name of a TrendPro object or an expression that evaluates to a TrendPro object.
value
- is a parameter of the type String. This string represents the relative amount of time from the current time.
Relative times are specified in the format
sNu
()
where:
  • s
    - direction. Only "-" (minus sign) is supported.
  • N -
    duration
  • u
    - duration units.
    s
    means seconds,
    m
    means minutes, and
    h
    means hours.
Examples of relative times:
  • -10m()
    : means last ten minutes
  • -2h()
    : means last two hours
  • -168h()
    : means last week
The value returned for the TimePeriodDuration property will be in the format of
d.HH:MM:SS
where:
  • d
    - Days
  • HH
    - Hours
  • MM -
    Minutes
  • SS
    - Seconds
Example
Private Sub SetTimePeriodDuration() TrendPro1.TimePeriodAbsoluteMode = False TrendPro1.TimePeriodDuration = "-10m()" End Sub
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal