Class Resolution

java.lang.Object
io.openems.common.timedata.Resolution

public class Resolution extends Object
Resolution to hold duration and ChronoUnit.
  • Constructor Details

  • Method Details

    • getValue

      public long getValue()
    • getUnit

      public ChronoUnit getUnit()
    • revertInfluxDbOffset

      public ZonedDateTime revertInfluxDbOffset(ZonedDateTime date)
      Revert InfluxDB offset happens if windows resolution is days or months.
      Parameters:
      date - to remove InfluxDB offset
      Returns:
      Date without offset
    • toSeconds

      public Long toSeconds()
      Get given duration in seconds [s].
      Returns:
      Seconds
    • toString

      public String toString()
      Overrides:
      toString in class Object