|
Constructor | public TimeAndDate() | ||
Time | Get the time as hour.min (24 hour clock) | public String getShortTime24() | |
Get the time as hour.min AM/PM (12 hour clock) | public String getShortTime12() | ||
Get the time as hour.min.sec (24 hour clock) | public String getMidTime24() | ||
Get the time as hour.min.sec AM/PM (12 hour clock) | public String getMidTime12() | ||
Get the time as hour.min.sec.ms (24 hour clock) | public String getFullTime24() | ||
Get the time as hour.min.sec.ms AM/PM (12 hour clock) | public String getFullTime12() | ||
Get the hour of the day (24 hour clock) | public int getHour24() | ||
Get the hour of the day AM/PM (12 hour clock) | public String getHour12() | ||
Get the minute | public int getMinute() | ||
Get the second | public int getSecond() | ||
Get the millisecond | public int getMilliSecond() | ||
Get the current computer time | public long getComputerTime() | ||
Convert a date to computer time | public long dateToJavaMilliSecondsUK(int year, int month, int dayOfTheMonth, String dayOfTheWeek, int minute, int second, int millisecond) | ||
Wait for n seconds | public void waitFor(int n) | ||
public void waitFor(long n) | |||
public void waitFor(double n) | |||
Running time | Mark start of bloc | public void blocStart() | |
Mark end of bloc | public long blocEnd() | Return running time | public long blocTime() |
Date | Get the date as 'day of month' 'month name' 'year' | public String getDate() | |
Get the date as 'day name', 'day of month' 'month name' 'year' | public String getFullDate() | ||
Get the date as 'day of month'.'month'.'year' | public String getShortDateUK() | ||
Get the date as 'month'/'day of month'/'year' | public String getShortDateUS() | ||
Get the day of the week | public String getDayOfTheWeek() | ||
Get the day of the week as an integer | public int getDayOfTheWeekAsInteger() | ||
Get the day of the month | public int getDayOfTheMonth() | ||
Get the day of a date | public String getDayOfDate(int dayOfTheMonth, int month, int year) | ||
public String getDayOfDate(int dayOfTheMonth, String month, int year) | |||
Get the month as name | public String getMonth() | ||
Get the month as integer | public int getMonthAsInteger() | ||
Get the year | public int getYear() | ||
Check for a leap year | public boolean leapYear(int year) | ||
Check whether in British Summer Time | public boolean checkBST() | ||
Calculate the next British Summer Time clock change | public String nextBstClockChange() | ||
Easter Sunday | public String easterSunday() | public String easterSunday(int year) | |
Good Friday | public String goodFriday() | public String goodFriday(int year) | |
Maundy Thursday | public String maundyThursday() | public String maundyThursday(int year) | |
Palm Sunday | public String palmSunday() | public String palmSunday(int year) | |
Ash Wednesday | public String ashWednesday() | public String ashWednesday(int year) | |
Shrove Tuesday | public String shroveTuesday() | public String shroveTuesday(int year) | |
Christmas Day | public String christmasDay() | public String christmasDay(int year) | |
Epiphany | public String epiphany() | public String epiphany(int year) | public String sundayAfterEpiphany() | public String sundayAfterEpiphany(int year) |
First Sunday of Advent | public String adventSunday() | public String adventSunday(int year) | |
St Patrick's Day | public String saintPatricksDay() | public String saintPatricksDay(int year) | |
St George's Day | public String saintGeorgesDay() | public String saintGeorgesDay(int year) | |
St Andrew's Day | public String saintAndrewsDay() | public String saintAndrewsDay(int year) | |
St David's Day | public String saintDavidsDay() | public String saintDavidsDay(int year) | |
St Stephen's Day | public String saintStephensDay() | public String saintStephensDay(int year) | |
St Valentine's Day | public String saintValentinesDay() | public String saintValentinesDay(int year) | |
St Brigid's Day | public String saintBrigidsDay() | public String saintBrigidsDay(int year) | |
St Colm Cille's Day (St Columba's Day) | public String saintColmCillesDay() | public String saintColmCillesDay(int year) | public String saintColumbasDay() | public String saintColumbasDay(int year) |
Mother's Day | public String mothersDayUK() | public String mothersDayUK(int year) | public String mothersDayUS() | public String mothersDayUS(int year) |
Father's Day | public String fathersDay() | public String fathersDay(int year) | |
Burns' Night | public String burnsNight() | public String burnsNight(int year) | |
Twelfth of July | public String twelfthJuly() | public String twelfthJuly(int year) | |
Commonwealth Day | public String commonwealthDay() | public String commonwealthDay(int year) | |
Armed Forces Day (UK Veterans' Day) | public String armedForcesDay() | public String armedForcesDay(int year) | public String veteransDayUK() | public String veteransDayUK(int year) |
Fourth of July (US Independence Day) | public String fourthJuly() | public String fourthJuly(int year) | |
US Thanksgiving Day | public String thanksgivingDay() | public String thanksgivingDay(int year) | |
Feast of the Purification (Feast of the Presentation, Candlemas) | public String purification() | public String purification(int year) | public String presentation() | public String presentation(int year) | public String candlemas() | public String candlemas(int year) |
Feast of the Annunciation | public String annunciation() | public String annunciation(int year) | |
Whit Sunday (Pentecost) | public String whitSunday() | public String whitSunday(int year) | |
Ascension Thursday | public String ascensionThursday() | public String ascensionThursday(int year) | public String sundayAfterAscensionThursday() | public String sundayAfterAscensionThursday(int year) |
Trinity Sunday | public String trinitySunday() | public String trinitySunday(int year) | |
Corpus Christi | public String corpusChristi() | public String corpusChristi(int year) | public String sundayAfterCorpusChristi() | public String sundayAfterCorpusChristi(int year) |
Feast of the Transfiguration of Christ | public String transfiguration() | public String transfiguration(int year) | |
Feast of the Assumption | public String assumption() | public String assumption(int year) | Feast of the Nativity of the Blessed Virgin | public String nativityBlessedVirgin() | public String nativityBlessedVirgin(int year) |
Feast of the Immaculate Conception | public String immaculateConception() | public String immaculateConception(int year) | |
Remembrance Sunday | public String remembranceSunday() | public String remembranceSunday(int year) | |
Holocaust Memorial Day | public String holocaustMemorialDay() | public String holocaustMemorialDay(int year) |
Mark the start of the bloc public void blocStart() Usage: tad.blocStart(); This method should be called at the start of the bloc of coding whose execution time is required. |
Mark the end of the bloc and return the running time public void blocEnd() Usage: runTime = tad.blocEnd(); This method should be called at the end of the bloc of coding whose execution time is required. It returns the execution time between this call and the call to bocStart(), as a long, in milliseconds. |
Return the last running time measured public void blocTime() Usage: runTime = tad.blocTime(); This method returns the last execution time to be measured, as a long, in milliseconds. |
United Kingdom and Ireland public String mothersDayUK() public String mothersDayUK(int year) Usage: day = tad.mothersDayUK(); Returns the date of the next Mothers's Day (Mothering Sunday), in the United Kingdom and in Ireland, as a String, e.g. "Sunday, 14 March 2010". Usage: day = tad.mothersDayUK(year); Returns the date of Mothers's Day (Mothering Sunday), in the United Kingdom and in Ireland, for the entered year (argument year) as a String, e.g. "Sunday, 22 March 2009" for the entered year 2009. United States of America public String mothersDayUS() public String mothersDayUS(int year) Usage: day = tad.mothersDayUS(); Returns the date of the next Mothers's Day (Mothering Sunday), in the United States, as a String, e.g. "Sunday, 9 June 2010". Usage: day = tad.mothersDayUS(year); Returns the date of Mothers's Day (Mothering Sunday), in the United States, for the entered year (argument year) as a String, e.g. "Sunday, 10 May 2009" for the entered year 2009. |