Package | Description |
---|---|
ch.agent.t2.applied |
Ready to use time domains and a time domain catalog implemented with the ch.agent.t2.time API.
|
ch.agent.t2.time |
Defines and implements time and time domains.
|
ch.agent.t2.timeutil |
Non-essential behavior useful for working with dates, times and time series.
|
Modifier and Type | Method and Description |
---|---|
Resolution |
DayRankingSubPeriodPattern.getBasePeriod() |
Resolution |
SimpleSubPeriodPattern.getBasePeriod() |
Resolution |
DayRankingSubPeriodPattern.getSubPeriod() |
Resolution |
SimpleSubPeriodPattern.getSubPeriod() |
Modifier and Type | Method and Description |
---|---|
protected void |
DayByNameAndRank.checkRank(int rank,
Resolution unit)
Verify the validity of the rank for the given resolution.
|
protected int |
DayByNameAndRank.getMaxRank(Resolution unit)
Return the maximum rank even if it is not always achievable.
|
Constructor and Description |
---|
DayRankingSubPeriodPattern(Resolution basePeriod,
DayByNameAndRank[] ranks)
Construct a sub period pattern for the given base period and ranks.
|
SimpleSubPeriodPattern(Resolution basePeriod,
Resolution subPeriod,
int[] ranks)
Construct a sub period pattern with the given base period and sub period resolutions, and with
the given ranks.
|
Modifier and Type | Method and Description |
---|---|
Resolution |
SubPeriodPattern.getBasePeriod()
Return the base period resolution.
|
Resolution |
TimeDomainDefinition.getBaseUnit()
Return the resolution.
|
Resolution |
TimeDomain.getResolution()
Return the resolution of the time domain.
|
Resolution |
TimeFactory.getResolution() |
Resolution |
TimeParts.getResolution()
Return the time resolution.
|
Resolution |
SubPeriodPattern.getSubPeriod()
Return the sub period resolution.
|
static Resolution |
Resolution.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Resolution[] |
Resolution.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
int |
TimeDomain.compareResolutionTo(Resolution unit)
Return a negative, zero, positive number if the resolution is higher,
the same, or lower than the argument.
|
int |
TimeFactory.compareResolutionTo(Resolution unit) |
static long |
TimeTools.dayIndex(Resolution unit,
long time)
Return the day index computed from the uncompressed numerical time.
|
TimeIndex |
Time2.getDayByRank(Resolution basePeriod,
DayOfWeek day,
int rank) |
TimeIndex |
TimeIndex.getDayByRank(Resolution referencePeriod,
DayOfWeek day,
int rank)
Return the TimeIndex for a day defined by name and rank within a reference period.
|
static DayOfWeek |
TimeTools.getDayOfWeek(Resolution unit,
long time)
Return the day of week for the given unit and uncompressed time index.
|
int |
TimeParts.getFsec(Resolution targetUnit)
Return the fractional second with a given resolution.
|
static long |
TimeTools.makeRawIndex(Resolution unit,
TimeParts tp)
Return a long number representing a time parts object.
|
TimeParts |
DefaultTimeScanner.scan(Resolution unit,
String datetime) |
TimeParts |
TimeScanner.scan(Resolution unit,
String datetime)
Scan the date string into a time parts object.
|
TimeParts |
TimeFactory.scan(Resolution unit,
String time) |
Constructor and Description |
---|
TimeDomainDefinition(String label,
Resolution baseUnit,
long origin)
Construct a definition with the given label and properties.
|
TimeDomainDefinition(String label,
Resolution baseUnit,
long origin,
BasePeriodPattern basePattern)
Construct a definition with the given label and properties.
|
TimeDomainDefinition(String label,
Resolution baseUnit,
long origin,
BasePeriodPattern basePattern,
SubPeriodPattern subPattern)
Construct a definition with the given label and properties.
|
TimeParts(Resolution unit,
long year,
int month,
int day,
int hour,
int min,
int sec,
int fsec)
Constructor with a default time zone offset.
|
TimeParts(Resolution unit,
long year,
int month,
int day,
int hour,
int min,
int sec,
int fsec,
TimeParts.TimeZoneOffset tzOffset)
Constructor.
|
TimeZoneOffset(Resolution unit,
boolean negative,
int hour,
int min,
int sec,
int fsec)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static int |
DateHolder.getLargeIncrement(Resolution unit)
Return the number of units for a large increment in the given resolution.
|
Copyright © 2017. All rights reserved.