|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Fraction in de.laliluna.date |
|---|
| Fields in de.laliluna.date declared as Fraction | |
|---|---|
static Fraction |
Date.DAY
|
static Fraction |
Date.HOUR
|
static Fraction |
Date.MILLISECOND
|
static Fraction |
Date.MINUTE
|
static Fraction |
Date.SECOND
|
| Methods in de.laliluna.date that return Fraction | |
|---|---|
Fraction |
Fraction.abs()
|
Fraction |
Fraction.dividedBy(Fraction b)
return a Fraction representing this Fraction divided by b * |
Fraction |
Fraction.dividedBy(long n)
return a Fraction representing this Fraction divided by n * |
Fraction |
Fraction.dividedBy(long num,
long den)
Creates a fraction from the passed num and den value and divides the current value by this fraction. |
Fraction |
Fraction.inverse()
return a Fraction representing 1 / this Fraction * |
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 |
Fraction |
Fraction.minus(Fraction b)
return a Fraction representing this Fraction minus b * |
Fraction |
Fraction.minus(long n)
return a Fraction representing this Fraction minus n * |
Fraction |
Fraction.minus(long num,
long den)
Creates a fraction from the passed num and den value and subtracts it. |
Fraction |
Fraction.negative()
return a Fraction representing the negated value of this Fraction * |
Fraction |
TimeZone.offset()
Returns the value to add to UTC, ignores daylight changes 1/24 is one hour, 1/48 = half an hour |
Fraction |
Fraction.plus(Fraction b)
return a Fraction representing this Fraction plus b * |
Fraction |
Fraction.plus(long n)
return a Fraction representing this Fraction plus n * |
Fraction |
Fraction.plus(long num,
long den)
Creates a fraction from the passed num and den value and adds it. |
Fraction |
Fraction.times(Fraction b)
return a Fraction representing this Fraction times b * |
Fraction |
Fraction.times(long n)
return a Fraction representing this Fraction times n * |
Fraction |
Fraction.times(long num,
long den)
Creates a fraction from the passed num and den value and multiplies it with the current value. |
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. |
| Methods in de.laliluna.date with parameters of type Fraction | |
|---|---|
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 |
Fraction |
Fraction.dividedBy(Fraction b)
return a Fraction representing this Fraction divided by b * |
Fraction |
Fraction.minus(Fraction b)
return a Fraction representing this Fraction minus b * |
Fraction |
Fraction.plus(Fraction b)
return a Fraction representing this Fraction plus b * |
Date |
Date.substract(Fraction f)
Subtracts a time span from the date |
Fraction |
Fraction.times(Fraction b)
return a Fraction representing this Fraction times b * |
| Constructors in de.laliluna.date with parameters of type Fraction | |
|---|---|
Fraction(Fraction f)
Create a fraction with the same value as Fraction f * |
|
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||