Inherits from Comparable
Name | |
---|---|
MamaDateTime() | |
MamaDateTime(MamaDateTime copy) | |
MamaDateTime(MamaDateTime time, MamaDateTime date) | |
MamaDateTime(Calendar calendar) | |
MamaDateTime(String str) | |
MamaDateTime(String str, MamaTimeZone tz) | |
String | toString() |
String | formatString(String str, MamaTimeZone tz) |
int | compareTo(Object obj) |
boolean | equals(Object obj) |
int | hashCode() |
native boolean | isEmpty() |
void | setEpochTime(long secondsSinceEpoch, long microseconds, MamaDateTimePrecision precision) |
void | setEpochTime(long secondsSinceEpoch, long microseconds) |
native void | setEpochTimeF64(double secondsSinceEpoch) |
native void | setEpochTimeMilliseconds(long millisecondsSinceEpoch) |
native void | setEpochTimeMicroseconds(long microsecondsSinceEpoch) |
void | setWithHints(long secondsSinceEpoch, long microseconds, MamaDateTimePrecision precision, MamaDateTimeHints hints) |
native void | setToNow() |
void | setToMidnightToday(MamaTimeZone tz) |
void | set(int year, int month, int day, int hour, int minute, int second, long microsecond, MamaDateTimePrecision precision, MamaTimeZone tz) |
void | setTime(int hour, int minute, int second, long microsecond, MamaDateTimePrecision precision, MamaTimeZone tz) |
native void | setDate(int year, int month, int day) |
native void | copyTime(MamaDateTime src) |
native void | copyDate(MamaDateTime src) |
native void | clear() |
native void | clearTime() |
native void | clearDate() |
native boolean | hasDate() |
native boolean | hasTime() |
native void | addSeconds(double seconds) |
native void | addSeconds(long seconds) |
native void | addMicroSeconds(long microSeconds) |
long | getEpochTimeMicroseconds() |
long | getEpochTimeMicroseconds(MamaTimeZone tz) |
long | getEpochTimeMilliseconds() |
long | getEpochTimeMilliseconds(MamaTimeZone tz) |
double | getEpochTimeSeconds() |
double | getEpochTimeSeconds(MamaTimeZone tz) |
native double | getEpochTimeSecondsWithCheck() |
native String | getAsString() |
native String | getTimeAsString() |
native String | getDateAsString() |
native long | getYear() |
native long | getMonth() |
native long | getDay() |
native long | getHour() |
native long | getMinute() |
native long | getSecond() |
native long | getMicrosecond() |
MamaDayOfWeek | getDayOfWeek() |
Calendar | getCalendar() |
native void | destroy() |
native void | copy(MamaDateTime copy) |
native double | diffSeconds(MamaDateTime t1, MamaDateTime t0) |
native double | diffSecondsSameDay(MamaDateTime t1, MamaDateTime t0) |
native long | diffMicroseconds(MamaDateTime t1, MamaDateTime t0) |
Name | |
---|---|
long | getPointerVal() |
void | setPointerVal(long pointerVal) |
void | finalize() |
class com::wombat::mama::MamaDateTime;
MamaDataTime
Posix date/time representation.
inline MamaDateTime()
inline MamaDateTime(
MamaDateTime copy
)
inline MamaDateTime(
MamaDateTime time,
MamaDateTime date
)
inline MamaDateTime(
Calendar calendar
)
inline MamaDateTime(
String str
)
inline MamaDateTime(
String str,
MamaTimeZone tz
)
inline String toString()
inline String formatString(
String str,
MamaTimeZone tz
)
inline int compareTo(
Object obj
)
inline boolean equals(
Object obj
)
inline int hashCode()
native boolean isEmpty()
inline void setEpochTime(
long secondsSinceEpoch,
long microseconds,
MamaDateTimePrecision precision
)
inline void setEpochTime(
long secondsSinceEpoch,
long microseconds
)
native void setEpochTimeF64(
double secondsSinceEpoch
)
native void setEpochTimeMilliseconds(
long millisecondsSinceEpoch
)
native void setEpochTimeMicroseconds(
long microsecondsSinceEpoch
)
inline void setWithHints(
long secondsSinceEpoch,
long microseconds,
MamaDateTimePrecision precision,
MamaDateTimeHints hints
)
This is not actually implemented in C/C++. The hints field is ignored.
native void setToNow()
inline void setToMidnightToday(
MamaTimeZone tz
)
inline void set(
int year,
int month,
int day,
int hour,
int minute,
int second,
long microsecond,
MamaDateTimePrecision precision,
MamaTimeZone tz
)
inline void setTime(
int hour,
int minute,
int second,
long microsecond,
MamaDateTimePrecision precision,
MamaTimeZone tz
)
native void setDate(
int year,
int month,
int day
)
native void copyTime(
MamaDateTime src
)
native void copyDate(
MamaDateTime src
)
native void clear()
native void clearTime()
native void clearDate()
native boolean hasDate()
native boolean hasTime()
native void addSeconds(
double seconds
)
native void addSeconds(
long seconds
)
native void addMicroSeconds(
long microSeconds
)
inline long getEpochTimeMicroseconds()
Exceptions:
Return: The number of microseconds since the Epoch.
Get the date and time as microseconds since the Epoch, (using the UTC timezone).
inline long getEpochTimeMicroseconds(
MamaTimeZone tz
)
inline long getEpochTimeMilliseconds()
inline long getEpochTimeMilliseconds(
MamaTimeZone tz
)
inline double getEpochTimeSeconds()
inline double getEpochTimeSeconds(
MamaTimeZone tz
)
native double getEpochTimeSecondsWithCheck()
Exceptions:
Return: The number of seconds, (including partial seconds), since the Epoch.
Get the date and time as seconds since the Epoch, (using the UTC timezone). If no date value is contained in the dateTime then it will be set to today’s date and the calculation made.
The timezone must to set to UTC if calling this from multiple threads concurrently to avoid contention in strftime.
native String getAsString()
native String getTimeAsString()
native String getDateAsString()
native long getYear()
native long getMonth()
native long getDay()
native long getHour()
native long getMinute()
native long getSecond()
native long getMicrosecond()
inline MamaDayOfWeek getDayOfWeek()
inline Calendar getCalendar()
native void destroy()
native void copy(
MamaDateTime copy
)
static native double diffSeconds(
MamaDateTime t1,
MamaDateTime t0
)
static native double diffSecondsSameDay(
MamaDateTime t1,
MamaDateTime t0
)
static native long diffMicroseconds(
MamaDateTime t1,
MamaDateTime t0
)
inline long getPointerVal()
inline void setPointerVal(
long pointerVal
)
inline void finalize()
Updated on 2023-03-31 at 15:29:42 +0100