com.enterprisemath.utils.DatesProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of em-utils Show documentation
Show all versions of em-utils Show documentation
Collection of utility classes for large scale projects focusing on robust and testable code.
package com.enterprisemath.utils;
import java.util.Date;
/**
* Interface which providing functions to access the popular dates.
*
* @author radek.hecl
*
*/
public interface DatesProvider {
/**
* Returns the yesterdays date. This is truncated to date minus 1 day.
*
* @return yesterdays date
*/
public Date yesterday();
/**
* Returns todays date. This is current timestamp which is truncated to days.
*
* @return todays date
*/
public Date today();
/**
* Returns the current timestamp.
*
* @return current timestamp
*/
public Date now();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy