Clicking the ‘randomize’ button situated above the reference table generates a new table whereby the function descriptions, function syntaxes, and function return values are randomized. The quiz involves matching the function descriptions, function syntaxes, and function return values to the correct function name. Information relating to the randomization of table cells will be displayed for three seconds, before disappearing.
On a desktop computer, table elements are selected by left-clicking the desired table cell and holding the left click in the mouse down position for one second before releasing the left click. The text inside the table cell will turn red to indicate that the one-second mouse left-click has successfully selected a table cell. To then swap the selected table cell with the target table cell, simply repeat the one-second left mouse-click process on the target cell; the table cells will swap position. To de-select a table cell, simply repeat the one-second left mouse-click process on the original table cell.
To select a table element on a touchscreen device (mobile, tablet), simply touch the desired table cell and maintain the touch for one second before removing your finger from the screen. The text inside the table cell will turn red to indicate that the one-second touch has successfully selected a table cell. To then swap the selected table cell with the target table cell, simply repeat the one-second touch process on the target cell; the table cells will swap position. To de-select a table cell, simply repeat the one-second touch process on the original table cell.
Normal touchscreen scrolling behaviour is exhibited by the cells with a light green background; cells without a light green background will not respond to normal touchscreen scrolling. The table is positioned in such a way that the user can also initiate touchscreen scrolling by swiping to the right or left of the table.
When a row consists of the correct function name, function description, function syntax, and function return value, the background colour of the row will change from ‘transparent’ to ‘khaki’; this provides visual feedback that the row is complete.
Once the entire table is complete, a paragraph of feedback will congratulate the user and provide the following information: date and time of quiz commencement; date and time of quiz completion; and the length of time it took the user to complete the quiz.
This webpage serves two purposes:
It provides a reference table for the PHP calendar functions, with information extracted and condensed from w3schools.com and php.net.
It enables users to complete a quiz related to the PHP calendar functions.
For each calendar function there are four table cells of information: the function name; the function description; the function syntax; and the function return value. There are three layouts available – ‘mobile‘, ‘tablet‘, and ‘desktop‘.
Click the relevant button below to display the PHP calendar functions reference table, sized appropriately for the desired viewport. A ‘RANDOMIZE‘ button appears above the reference table once the viewport is selected; clicking this button facilitates the commencement of a quiz.
Click the ‘RANDOMIZE‘ button to randomize the functional descriptions, the functional syntaxes, and the functional return information.
FUNCTION RETURN VALUE
[Returns a month name]
Returns a string containing a month name. mode specifies which calendar to convert julian_day to, and what type of month names are to be returned.
[if the hebrew parameter is set to TRUE, the fl parameter is used for Hebrew, ISO-8859-8 encoded string-based output. fl represents a bitmask which may consist of the following values: CAL_JEWISH_ADD_ALAFIM_GERESH; CAL_JEWISH_ADD_ALAFIM; or CAL_JEWISH_ADD_GERESHAYIM.]
Returns the Jewish date as a string in the form “month/day/year”, or an ISO-8859-8 encoded Hebrew date string, according to the hebrew parameter.
[converts a Julian Day Count to a Julian Calendar date]
Converts julian_dayto a string containing the Julian Calendar Date in the format of “month/day/year”.
Returns the Julian Date as a string in the form “month/day/year”.
[Convert Julian Day to Unix timestamp]
Converts julian_dayto a Unix timestamp. The time returned is UTC.
[julian_day must be inside the Unix Epoch (between Gregorian years 1970 and 2037, i.e. a count in the range 2440588 – 2465342).]
Returns the Unix timestamp for the start (midnight, not noon) of julian_day on success; FALSE if julian_day is not within the Unix Epoch.
[Converts a date in the Jewish calendar to Julian Day Count]
Converts a Jewish Calendar date toJulian Day Count. In the early days of the Jewish Calendar there was no formula to determine the start of a month – a new month was started when the new moon was observed. Thus, although this function can handle dates all the way back to year 1 (3761 B.C.), using this function to calculate Jewish dates from millennia ago might not be meaningful.
jewishtojd(month, day, year);
[month is represented by an integer ranging from 1-13, with 1 meaning Tishri, 13 meaning Elul, and 6 and 7 meaning Adar in regular years, but meaning Adar I and Adar II (respectively) in leap years; day is represented by an integer ranging from 1-30 – if the month only has 29 days then the first day of the following month is assumed; and year is represented by an integer ranging from 1-9999.]
Returns the Julian Day as an integer for the given Jewish date.
[Converts a Julian Calendar date to Julian Day Count]
Converts a date from the Julian Calendar to Julian Day Count. The Julian Calendar’s permitted range is from 4713 B.C. to 9999 A.D. This calendar was created in 46 B.C. but did not stabilize until at least 8 A.D., and perhaps as late as the fourth century. Furthermore, not all cultures accepted January as the first month. As such, using this function to calculate dates from millennia ago might not be meaningful.
juliantojd(month, day, year);
[month is represented by an integer in the range 1 (January)-12 (December); day is represented by an integer in the range 1-31; and year is represented by an integer in the range -4713 to 9999.]
Returns the Julian Day as an integer for the given Julian date.
[Convert Unix timestamp to Julian Day]
Returns the Julian Day for a Unixtimestamp [seconds since 1.1.1970], if supplied, or for the current day if timestamp is not supplied. The time is regarded as local time, not Universal Time Coordinated [UTC].
unixtojd(timestamp [optional parameter]);
Returns a Julian Day number conversion of a Unix timestamp as integer.
FILL IN FORM AND CLICK SUBMIT TO ADD YOUR STATISTICS TO THE LEADERBOARD:
Forty-year-old father of three wonderful children [William, Seth, and Alyssa]. Works as an Assistant Technical Officer in the Sterile Services Department of Treliske Hospital, Cornwall. Enjoys jogging, web design, learning programming languages, and supporting Arsenal FC. Obtained a BA degree in English from the University of Bolton in 2008, and has continued to gain qualifications in a diverse range of subjects thereafter.