Table of Contents

Date Range Value Object

com.ergotech.vib.valueobjects.DateRangeValueObject

Description

The Date Range Value Object can be used by a few Servers or Manipulators to set a date/time range. An example is for a Historical database lookup or Trend Chart date/time range.

JavaScript Notes

Example: Create a Date Range Value Object from two timestamped data source values called “StartTime” and “EndTime”.

var Date = Java.type("java.util.Date");
var DateRangeValueObject = Java.type("com.ergotech.vib.valueobjects.DateRangeValueObject");
 
startTime = StartTime -> getValueObject().getTimeMillis();
endTime = EndTime -> getValueObject().getTimeMillis();
drvo = new DateRangeValueObject(new Date(startTime),new Date(endTime));