|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ocopomo.date.DateFacilities
public class DateFacilities
Field Summary | |
---|---|
static int |
DATELENGTH
|
Constructor Summary | |
---|---|
DateFacilities()
|
Method Summary | |
---|---|
static boolean |
areInSameYear(double tick1,
double tick2)
Check whether the two given ticks represents a couple of dates that belong to the same year |
static int[] |
date(double tick)
Converts a tick to a date (in the format week - 0 to 3 in a month, month - 0 to 11 and year - 48 weeks. |
static boolean |
isBudgetTime(double tick)
Check whether the given tick represents the first week of the year |
static java.lang.Boolean |
isEqualTimestampDate(double tick,
int[] date)
|
static java.lang.Boolean |
isEqualTimestampDate(double tick,
int week,
int month,
int year)
Checks whether a tick and a week/month/year-date represent the same date |
static double |
tick(int[] date)
Converts a date (in the format week - 0 to 3 in a month, month - 0 to 11 and year - 48 weeks. |
static double |
tick(int w,
int m,
int y)
Converts a date (in the format week - 0 to 3 in a month, month - 0 to 11 and year - 48 weeks. |
static void |
updateDate(org.ocopomo.drams.data.FactBase factBase,
double tick)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DATELENGTH
Constructor Detail |
---|
public DateFacilities()
Method Detail |
---|
public static int[] date(double tick)
tick
- The tick of the model
public static double tick(int[] date)
int
- An array of int that expresses a date in the format {week, month, year}
public static double tick(int w, int m, int y)
- int
- An array of int that expresses a date in the format {week, month, year}w
- the week [0-3 values]m
- the month [0-11 values]y
- the year [0-... values]
public static java.lang.Boolean isEqualTimestampDate(double tick, int[] date)
public static java.lang.Boolean isEqualTimestampDate(double tick, int week, int month, int year)
tick
- week
- month
- year
-
public static boolean areInSameYear(double tick1, double tick2)
tick1
- The first tick to comparetick2
- The second tick to compare
public static boolean isBudgetTime(double tick)
tick
- The tick to check
public static void updateDate(org.ocopomo.drams.data.FactBase factBase, double tick)
factBase
- tick
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |