|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Date in de.laliluna.date |
|---|
| Methods in de.laliluna.date that return Date | |
|---|---|
Date |
Date.add(Fraction f)
Adds time expressed as fraction add(new Fraction(1/1)) - adds a day
add(new Fraction(1/24)) - adds an hour
add(new Fraction(5/1440)) - adds 5 minutes
The maximum you can add are 4085 years |
Date |
Date.addDays(int day)
|
Date |
Date.addHours(int hours)
|
Date |
Date.addMilliSeconds(int milliSeconds)
|
Date |
Date.addMinutes(int minutes)
|
Date |
Date.addMonths(int month)
|
Date |
Date.addSeconds(int seconds)
|
Date |
Date.addYears(int years)
|
static Date |
Date.now()
Creates a date and time instance for now |
static Date |
Date.now(TimeZone timeZone)
Creates a date and time instance for now and sets the given timeZone |
Date |
Date.resetDate()
Sets year, month, day to zero |
Date |
Date.resetTime()
Sets hour, minute, second and millisecond to zero |
Date |
Date.setDay(int day)
|
Date |
Date.setHour(int hours)
|
Date |
Date.setMilliSeconds(int milliSeconds)
|
Date |
Date.setMinute(int minutes)
|
Date |
Date.setMonth(int month)
|
Date |
Date.setMonth(Months month)
|
Date |
Date.setSeconds(int seconds)
|
Date |
Date.setTimeZone(TimeZone timeZone)
|
Date |
Date.setYear(int year)
|
Date |
Date.substract(Fraction f)
Subtracts a time span from the date |
static Date |
Date.today()
Creates a date instance for todays date and sets the time to 00:00:00 000 |
static Date |
Date.today(TimeZone timeZone)
Creates a date instance for todays date and the given timeZone, sets the time to 00:00:00 000 |
Date |
Date.translate(TimeZone timeZone)
Translates the current Date to the passed time zone. |
| Methods in de.laliluna.date that return types with arguments of type Date | |
|---|---|
java.util.List<Date> |
DayFilter.filteredDays(Date from,
Date to)
collects the days to be filtered from a time span filter should be able to work correctly if the from date is later then the
start date |
| Methods in de.laliluna.date with parameters of type Date | |
|---|---|
boolean |
Date.after(Date other)
|
boolean |
Date.afterDate(Date other)
|
boolean |
Date.afterTime(Date other)
|
boolean |
Date.before(Date other)
|
boolean |
Date.beforeDate(Date other)
|
boolean |
Date.beforeTime(Date other)
|
int |
Date.compareDateTo(Date other)
Compares only the date part of a date to the other dates date part. |
int |
Date.compareTimeTo(Date other)
Compares only the time part of a date to the other dates time part. |
int |
Date.compareTo(Date other)
Compares date and time parts of a date to the other date |
boolean |
Date.equalDate(Date other)
|
boolean |
Date.equalDateTime(Date other)
|
boolean |
Date.equalTime(Date other)
|
java.util.List<Date> |
DayFilter.filteredDays(Date from,
Date to)
collects the days to be filtered from a time span filter should be able to work correctly if the from date is later then the
start date |
Fraction |
Date.minus(Date date)
Returns the time span between two dates as fraction 1/1 = 1 day, 1/24 = 1 hour, 26/24 = 1 day and 2 hours |
int |
DayFilter.totalFilteredDays(Date from,
Date to)
calculates the total of days to be filtered from a time span filter should be able to work correctly if the from date is later then the
start date |
Fraction |
Date.workingDaysBetween(Date other)
Calculates the number of working days between to dates. |
Fraction |
Date.workingDaysBetween(Date other,
DayFilter... dayFilter)
Calculates the number of working days between to dates. |
| Constructors in de.laliluna.date with parameters of type Date | |
|---|---|
Date(Date date)
|
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||