Interface TimeDiffService

All Known Implementing Classes:
DefaultTimeDiffService

public interface TimeDiffService
Service to calculate a time difference.
  • Method Summary

    Modifier and Type
    Method
    Description
    Calculates a time difference in milliseconds between current date and provided date.
  • Method Details

    • difference

      Long difference(Date date)
      Calculates a time difference in milliseconds between current date and provided date.
      Parameters:
      date - the Date to calculate the difference with.
      Returns:
      the difference in milliseconds.