Package io.openems.common.timedata
Class Resolution
java.lang.Object
io.openems.common.timedata.Resolution
Resolution to hold duration and
ChronoUnit
.-
Constructor Details
-
Resolution
- Throws:
OpenemsException
-
Resolution
-
-
Method Details
-
getValue
public long getValue() -
getUnit
-
revertInfluxDbOffset
Revert InfluxDB offset happens if windows resolution is days or months.- Parameters:
date
- to remove InfluxDB offset- Returns:
- Date without offset
-
toSeconds
Get given duration in seconds [s].- Returns:
- Seconds
-