org.gamenet.application.mm8leveleditor.data
Class DateTime
java.lang.Object
org.gamenet.application.mm8leveleditor.data.DateTime
- public class DateTime
- extends Object
Method Summary |
static long |
createDateTime(int year,
int month,
int day,
int hour,
int minute,
int tick)
|
static int |
getDayOfMonthForValue(long value)
|
static int |
getHourOfDayForValue(long value)
|
static int |
getMinuteOfHourForValue(long value)
|
static int |
getMonthOfYearForValue(long value)
|
static NumberLabelValueHolder[] |
getMonthOptions()
|
static int |
getTickOfMinuteForValue(long value)
|
static int |
getYearForValue(long value)
|
static Long |
parseLong(String dateString)
|
static String |
toString(long value)
|
static long |
updateDayOfMonthForValue(int day,
long value)
|
static long |
updateHourOfDayForValue(int hour,
long value)
|
static long |
updateMinuteOfHourForValue(int minute,
long value)
|
static long |
updateMonthOfYearForValue(int month,
long value)
|
static long |
updateTickOfMinuteForValue(int tick,
long value)
|
static long |
updateYearForValue(int year,
long value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_YEAR
private static int BASE_YEAR
DateTime
public DateTime()
getMonthOptions
public static NumberLabelValueHolder[] getMonthOptions()
getYearForValue
public static int getYearForValue(long value)
getMonthOfYearForValue
public static int getMonthOfYearForValue(long value)
getDayOfMonthForValue
public static int getDayOfMonthForValue(long value)
getHourOfDayForValue
public static int getHourOfDayForValue(long value)
getMinuteOfHourForValue
public static int getMinuteOfHourForValue(long value)
getTickOfMinuteForValue
public static int getTickOfMinuteForValue(long value)
createDateTime
public static long createDateTime(int year,
int month,
int day,
int hour,
int minute,
int tick)
updateYearForValue
public static long updateYearForValue(int year,
long value)
updateMonthOfYearForValue
public static long updateMonthOfYearForValue(int month,
long value)
updateDayOfMonthForValue
public static long updateDayOfMonthForValue(int day,
long value)
updateHourOfDayForValue
public static long updateHourOfDayForValue(int hour,
long value)
updateMinuteOfHourForValue
public static long updateMinuteOfHourForValue(int minute,
long value)
updateTickOfMinuteForValue
public static long updateTickOfMinuteForValue(int tick,
long value)
toString
public static String toString(long value)
parseLong
public static Long parseLong(String dateString)