|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TimeManager
| Field Summary | |
|---|---|
static long |
MILI_DAY
|
static long |
MILI_HOUR
|
static long |
MILI_MINUTE
|
static long |
MILI_MONTH
|
static long |
MILI_SECOND
|
static long |
MILI_WEEK
|
static long |
MILI_YEAR
|
| Method Summary | |
|---|---|
java.lang.String |
convertHour(java.lang.String TheHour)
Returns the regular Hours given the hours in the international format (military time) Usage: ConvertHour(GetIn(req, "ENDHR")) |
java.lang.String |
date2AMPMString(long time)
Returns the Minutes portion of a given Time Usage: String ST_AMPM=T2_AMPMString(); |
java.lang.String |
date2Date2String(long time)
Converts a given date into a string of form: MM/DD/YY Usage: d2D2String() |
java.lang.String |
date2DateString(long time)
Converts a given date into a string of form: MM/DD/YYYY Usage: d2DString() |
java.lang.String |
date2DayOfMonthString(long time)
Returns the DD portion of a given date Usage: String ENDDD=d2DDString(); |
java.lang.String |
date2HRString(long time)
Returns the Hours portion of a given Time Usage: String ENDHR=T2HRString(); |
java.lang.String |
date2MINString(long time)
Returns the Minutes portion of a given Time Usage: String ENDMIN=T2MINString(); |
java.lang.String |
date2MonthString(long time)
Returns the month for a given date Usage: String ENDMM=d2MMString(); |
java.lang.String |
date2SecondsString(long time)
Converts a given date into a string of form: MM/DD/YYYY HH:MM AP Usage: d2SString() |
java.lang.String |
date2String(java.util.Calendar C)
|
java.lang.String |
date2String(long time)
Converts a given date into a string of form: MM/DD/YYYY HH:MM AP Usage: d2String() |
java.lang.String |
date2YYYYString(long time)
Returns the YYYY portion of a given date Returns the DD portion of a given date Usage: String ENDYYYY=d2YYYYString(); |
java.lang.String |
date2ZoneString(long time)
Returns the time zone of the server Usage: MEETZN = T2ZoneString(); |
java.lang.String |
getAMPM(java.lang.String TheHour)
Returns the AMPM stamp given the international Hours portion the Time Usage: getAMPM(GetIn(req, "ENDHR")) |
java.lang.String |
getMonthName(int Number,
boolean GiveShort)
Return the name of the month, given a number Usage: String Mnth=ReturnMonthName(m,GiveShort).charStats(); |
java.lang.String |
getTheIntZoneID(int theRawOffset)
Get the zone id given the timezone string Usage: GetTheZoneID(MeetTZ.getRawOffset())+"\n"; |
java.lang.String |
getTheTimeZone(java.lang.String theID)
Returns the time zone of the given ID Usage: MEETZN = GetTheTimeZone(ID); |
TimeClock |
globalClock()
Returns the mud wide global time clock object as defined by the coffeemud.ini file. |
boolean |
isTickExpression(java.lang.String val)
Parses whether a tick expression, or an expression ending with the word minutes, hours, seconds, days, mudhours, muddays, mudweeks, mudmonths, or mudyears |
java.lang.String |
month2MM(java.lang.String Month)
Returns the numeric representation of the month Usage: Month2MM("January"); |
int |
parseTickExpression(java.lang.String val)
Parses either a tick expression, or an expression ending with the word minutes, hours, seconds, days, mudhours, muddays, mudweeks, mudmonths, or mudyears |
java.lang.String |
smtpDateFormat(long time)
format the date for an smtp message Usage: msgDateFormat(98374987234) |
java.util.Calendar |
string2Date(java.lang.String TheDate)
Converts a string of some form into a Calendar object. |
long |
string2Millis(java.lang.String TheDate)
Converts a string of some form into a Calendar object. |
java.lang.String |
twoDigits(long num)
Converts a number to two digits. |
| Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
|---|
activate, getSupportThread, shutdown |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final long MILI_SECOND
static final long MILI_MINUTE
static final long MILI_HOUR
static final long MILI_DAY
static final long MILI_WEEK
static final long MILI_MONTH
static final long MILI_YEAR
| Method Detail |
|---|
java.lang.String month2MM(java.lang.String Month)
Month - The month name
java.lang.String getMonthName(int Number,
boolean GiveShort)
Number - Month number to convertGiveShort - Give abbreviation if true
long string2Millis(java.lang.String TheDate)
TheDate - The string to retrieve from
java.util.Calendar string2Date(java.lang.String TheDate)
TheDate - The string to retrieve from
java.lang.String twoDigits(long num)
num - the number
java.lang.String convertHour(java.lang.String TheHour)
TheHour - Hours in military format
java.lang.String getAMPM(java.lang.String TheHour)
TheHour - Hours in military format
java.lang.String getTheIntZoneID(int theRawOffset)
theRawOffset - The time zone's raw offset to convert
java.lang.String getTheTimeZone(java.lang.String theID)
theID - The ID of the abbreviated time zone.
java.lang.String date2MonthString(long time)
time - The time in miliseconds
java.lang.String date2DayOfMonthString(long time)
time - The time in miliseconds
java.lang.String date2YYYYString(long time)
time - The time in miliseconds
java.lang.String date2HRString(long time)
time - time used
java.lang.String date2MINString(long time)
time - The time in miliseconds
java.lang.String smtpDateFormat(long time)
time - The time in miliseconds
java.lang.String date2ZoneString(long time)
time - The time in miliseconds
java.lang.String date2AMPMString(long time)
time - The time in miliseconds
java.lang.String date2String(java.util.Calendar C)
java.lang.String date2String(long time)
time - The time in miliseconds
java.lang.String date2SecondsString(long time)
time - The time in miliseconds
java.lang.String date2DateString(long time)
time - The time in miliseconds
java.lang.String date2Date2String(long time)
time - The time in miliseconds
int parseTickExpression(java.lang.String val)
val - the expression
boolean isTickExpression(java.lang.String val)
val - the expression
TimeClock globalClock()
TimeClock
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||