org.vfdtech.implementations.DateUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utilities-and-generic-tools Show documentation
Show all versions of utilities-and-generic-tools Show documentation
A utilities service with generic tools implementation. Can be
plugged into your java project. This is designed for Java 1.8
package org.vfdtech.implementations;
import org.vfdtech.exceptions.CustomException;
import org.vfdtech.interfaces.IDateTimeUtil;
import java.text.DateFormat;
import java.text.ParseException;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Month;
import java.time.Year;
import java.util.Date;
import java.util.List;
public class DateUtil implements IDateTimeUtil {
@Override
public String convertDateFormat(String fromFormat, String toFormat, String dateToFormat) throws ParseException, NullPointerException, IllegalArgumentException, CustomException {
return null;
}
@Override
public String convertDateFormat(String toFormat, Date dateToFormat) throws NullPointerException, IllegalArgumentException, CustomException {
return null;
}
@Override
public Object getDateFromString(String dateString, Class classToBeConvertedTo) {
return null;
}
@Override
public Object getDateFromString(String dateString, Class classToBeConvertedTo, String formatterString) {
return null;
}
@Override
public List getDateRange(String startDate, String endDate, boolean includeCurrentDate) {
return null;
}
@Override
public int getDaysInMonth(LocalDateTime dayInContext) {
return 0;
}
@Override
public LocalDateTime getPreviousDayFrom(LocalDateTime dayInContext) {
return null;
}
@Override
public LocalDateTime getNextDayFrom(LocalDateTime dayInContext) {
return null;
}
@Override
public Month getLastMonthFrom(LocalDateTime dayInContext) {
return null;
}
@Override
public Month getNextMonthFrom(LocalDateTime dayInContext) {
return null;
}
/**
* This method returns current day with midnight time
* E.g 2022-01-12 00:00:00
*
* @return LocalDateTime
*/
@Override
public LocalDateTime getTodayMidnight() {
return null;
}
/**
* This method returns current month (if month not specified) 's first day with midnight time
* If month is specified, it returns the specified month's first day with midnight time
*
* @param month
* @return
*/
@Override
public LocalDateTime getFirstMidnightOfTheMonth(Month... month) {
return null;
}
/**
* This method returns current year (if year not specified) 's first day with midnight time
* If year is specified, it returns the specified year's first day with midnight time
*
* @param year
* @return
*/
@Override
public LocalDateTime getFirstMidnightOfTheYear(Year... year) {
return null;
}
/**
* Add some minutes to current date
*
* @param somMinutes
* @return
* @throws ParseException
*/
@Override
public LocalDateTime addMinutesToNowDate(Integer somMinutes) throws ParseException {
return null;
}
/**
* This converts date instance to string
* When format is not passed, this method uses the instantiated date format from the impl class
*
* @param date
* @param format
* @return
*/
@Override
public LocalDateTime convertDateToString(LocalDate date, DateFormat... format) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy