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 |
---|---|
long |
DayRankingSubPeriodPattern.adjustForSubPeriod(long time,
Adjustment adjust,
TimeParts tp) |
long |
SimpleSubPeriodPattern.adjustForSubPeriod(long time,
Adjustment adjust,
TimeParts tp) |
Constructor and Description |
---|
ThirdFriday(String date,
Adjustment adjust)
Construct a
friday3time from a string. |
Week(long year,
int month,
int day,
Adjustment adjust)
Construct a
weeklytime from the given time components. |
Week(String date,
Adjustment adjust)
Construct a
weeklytime from a string. |
Workday(long year,
int month,
int day,
Adjustment adjust)
Construct a
workweektime from the given time components. |
Workday(String date,
Adjustment adjust)
Construct a
workweektime from a string. |
Modifier and Type | Method and Description |
---|---|
static Adjustment |
Adjustment.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Adjustment[] |
Adjustment.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
long |
SubPeriodPattern.adjustForSubPeriod(long time,
Adjustment adjust,
TimeParts timeParts)
Modify and return the numeric time index corresponding to the state of the
time parts argument.
|
TimeIndex |
Time2.convert(TimeDomain domain,
Adjustment adjustment) |
TimeIndex |
TimeIndex.convert(TimeDomain domain,
Adjustment adjustment)
Return a new time index by converting this one to the given time domain,
possibly adjusting the time as specified.
|
Range |
Range.convert(TimeDomain domain,
Adjustment adjust)
Convert the range to the domain specified.
|
long |
TimePacker.pack(TimeParts timeParts,
Adjustment adjust)
Pack the component elements of the time into a numeric time index.
|
long |
TimeFactory.pack(TimeParts tp,
Adjustment adjust) |
TimeIndex |
TimeDomain.time(long year,
int month,
int day,
int hour,
int min,
int sec,
int usec,
Adjustment adjust)
Return a new TimeIndex corresponding to the list of parameters.
|
TimeIndex |
TimeFactory.time(long year,
int month,
int day,
int hour,
int min,
int sec,
int usec,
Adjustment adjust) |
TimeIndex |
TimeDomain.time(String date,
Adjustment adjust)
Return a new TimeIndex corresponding to the given date string.
|
TimeIndex |
TimeFactory.time(String date,
Adjustment adjust) |
Constructor and Description |
---|
Range(TimeDomain domain,
String firstDate,
String lastDate,
Adjustment adjust)
Construct a range with bounds specified as date strings.
|
Time2(TimeDomain domain,
long year,
int month,
int day,
int hour,
int min,
int sec,
int fsec,
Adjustment adjust)
Construct a time index with the given time domain and parameters.
|
Time2(TimeDomain domain,
String time,
Adjustment adjustment)
Construct a time index with the given time domain and string, with possible
adjustment.
|
Time2(TimeDomain domain,
TimeParts timeParts,
Adjustment adjust)
Constructor a time index from a time parts object with an adjustment
parameter.
|
Modifier and Type | Method and Description |
---|---|
static TimeIndex |
JavaDateUtil.fromJavaDate(Date date,
TimeDomain domain,
Adjustment adjustment,
boolean UTC)
Convert a Java Date to a TimeIndex in a given domain, with tuning parameters.
|
static TimeIndex |
DayExpression.parseDay(String expr,
TimeDomain domain,
Adjustment adjustment)
Parse the expression as a date in the daily calendar and returns it as a TimeIndex
in the domain requested, adjusted as indicated.
|
Constructor and Description |
---|
DayExpression(Adjustment adjustment)
Construct a day expression with the given adjustment.
|
Copyright © 2017. All rights reserved.