All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enterprisemath.utils.DatesProvider Maven / Gradle / Ivy

Go to download

Collection of utility classes for large scale projects focusing on robust and testable code.

There is a newer version: 4.1.1
Show newest version
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