Functions | |
Index | |
---|---|
testFunctions () | |
arrayKeyExists ($key, $search) | |
fix ($fltInput=0) | |
rem ($intNumber=0, $intDivideBy=0) | |
mod ($intNumber=0, $intDivideBy=0) | |
floatvalx ($strValue) | |
DisplayCalDate ($strControlName="", $dtmCurrent="", $strFormat="Date") | |
getCalDate ($strControlName="") | |
fixDate ($arrDate="") | |
checkDateGregorian ($arrDate) | |
getDayOfMonth ($arrDate="") | |
getDayOfMonthFraction ($arrDate="") | |
getDayOfMonthJulian ($fltJulianNumber=0) | |
getDateArray ($ISO_DATETIME="") | |
getDateString ($arrDate="") | |
getDayOfWeek ($arrDate="") | |
getDayOfWeekFraction ($arrDate="") | |
getDayOfWeekJulian ($fltJulianNumber=0) | |
getDayOfWeekJulianFraction ($fltJulianNumber=0) | |
getDayOfYear ($arrDate="") | |
getDayOfYearFraction ($arrDate="") | |
getTimeFromDays ($intDays=0) | |
getDaysInMonth ($arrDate="") | |
getDaysInYear ($intYear=1) | |
getGregorianEaster ($intYear=0) | |
getJulianEaster ($intYear=0) | |
getDaysFromTime ($intHour, $intMinute, $intSecond) | |
getSecondsFromTime ($intHour, $intMinute, $intSecond) | |
getGregorianDateFromUnixSeconds ($intSeconds=0) | |
getGregorianDateFromMJD ($fltJulianNumber) | |
getGregorianDateFromJulianNumber ($fltJulianNumber=0) | |
getUnixSecondsFromGregorianDate ($arrDate="") | |
isDate ($arrDate="") | |
isLeapYear ($intYear="") | |
isTime ($arrDate) | |
getJulianDateFromGregorianDate ($arrDate="") | |
getJulianDateFromJulianNumber ($fltJulianNumber=0) | |
getMJDFromJulianNumber ($fltJulianNumber=0) | |
getJulianNumberFromGregorianDate ($arrDate="") | |
getJulianNumberFromJulianDate ($arrDate="") | |
getMonth ($arrDate="") | |
getMonthFraction ($arrDate="") | |
getMonthJulian ($fltJulianNumber=0) | |
getMJDFromGregorianDate ($arrDate="") | |
getWeekOfYear ($arrDate="") | |
getWeekOfYearFraction ($arrDate="") | |
getWeekOfYearJulian ($fltJulianNumber=0) | |
getWeekOfYearJulianFraction ($fltJulianNumber=0) | |
getWeeksInYear ($intYear=0) | |
getYear ($arrDate="") | |
getYearFraction ($arrDate="") | |
stripTime ($arrDate="") | |
stripTimeJulian ($fltJulianNumber=0) | |
getJulianNumberFromDMY ($intDay=1, $intMonth=1, $intYear=1) | |
getJulianNumberFromWeekNumber ($intWeekOfYear, $intYear) | |
getJulianNumberFromDayOfYear ($intDayOfYear, $intYear) | |
addDayGregorian ($arrDate="", $intDays=0) | |
addDayJulian ($fltJulianNumber=0, $intDays=0) | |
getClockTime ($fltJulianNumber=0, $intRound=15) | |
addClockTime ($fltTime, $intAddMinutes) |
|
addClockTime: Return formatted time from Julian Number float. Optionally round time to nearest intger
|
|
addDayGregorian: Add days to Gregorian Date.
|
|
addDayGregorian: Add days to Julian Date Number.
|
|
|
|
checkDateGregorian: Check validity of date array values.
|
|
|
|
fix: Round towards zero. Round a floating point number towars zero.
|
|
fixDate: Check validity of date array and its values, repair as necessary. Day, Month and Year will default to "1" and Hours, Minutes and Seconds to "0"
|
|
floatvalx: Return formatted floating point value. Not needed for newer PHP versions. Just rename floatvalx to floatval and remove this function
|
|
|
|
getClockTime: Return formatted time from Julian Number float. Optionally round time to nearest intger
|
|
getDateArray: Return a date array object for a valid MYSQL Date-Time string.. Currently only MYSQL datetime string format is supported.
|
|
getDateString: Return a MYSQL date-time string for a valid Date array. Currently only MYSQL datetime string format is supported. If no date is provided, the current date is used.
|
|
getDayOfMonth: Ordinal number of day in month (1-31). Return the day of onth as a whole integer. If no date is provided, the current date is used.
|
|
getDayOfMonthFraction: Ordinal number of day in month (1-31) plus fractional part of day. Return the day of onth as a whole integer. If no date is provided, the current date is used.
|
|
getDayOfMonthJulian: Find Ordinal Month Day number for a Julian Date Number.
|
|
getDayOfWeek: Ordinal number of day in week (1-7) . Return the day of week as a whole integer. This function is ISO 8601 compliant, so Monday is day 1, Tuesday is day 2, , Sunday is day 7. If no date is provided, the current date is used.
|
|
getDayOfWeekFraction: Ordinal number of day in week (1-7) plus fractional part of day.. Return the day of week as a fraction. This function is ISO 8601 compliant, so Monday is day 1, Tuesday is day 2, , Sunday is day 7. If no date is provided, the current date is used.
|
|
getDayOfWeekJulian: Ordinal number of day in week (1-7) . Return the day of week as a whole integer. This function is ISO 8601 compliant, so Monday is day 1, Tuesday is day 2, , Sunday is day 7. If no date is provided, the current date is used.
|
|
getDayOfWeekJulianFraction: Ordinal number of day in week (1-7) plus fractional part of day. Return the day of week as a fraction. This function is ISO 8601 compliant, so Monday is day 1, Tuesday is day 2, , Sunday is day 7. If no date is provided, the current date is used.
|
|
getDayOfYear: Ordinal number of day in year (1-366) . Return the day of year as a whole integer. This function is ISO 8601 compliant, the first calendar week of a year: week 1, is that week which contains the first Thursday of the year (or, equivalently, the week which includes January 4th of the year; the first day of that week is the previous Monday). If no date is provided, the current date is used.
|
|
getDayOfYearFraction: Ordinal number of day in year (1-366) plus fractional part of day. Return the day of year as a whole integer. This function is ISO 8601 compliant, the first calendar week of a year: week 1, is that week which contains the first Thursday of the year (or, equivalently, the week which includes January 4th of the year; the first day of that week is the previous Monday). If no date is provided, the current date is used.
|
|
getDaysFromTime: Convert hours, minutes and seconds to days.
|
|
getDaysInMonth: Number of days in a month (28-31). If no date is provided, the current date is used.
|
|
getDaysInYear: Determine the number of days in a given year(365-366). If no year is provided, one is assumed.
|
|
getGregorianDateFromJulianNumber: Convert Julian Date number to Gregorian Date array. Determine Gregorian Date from a Julian Date Number. If no date is provided, the current date is used. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getGregorianDateFromMJD: Convert Modified Julian Date (MJD) number to Gregorian Date array. Determine Gregorian Date from the Modified Julian Number. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getGregorianDateFromUnixSeconds: Convert Unix Epoch seconds to Gregorian Date array. Determine Gregorian Date from the number of seconds since the UNIX epoch (00:00:00 01 Jan 1970 UTC).
|
|
getGregorianEaster: Determine the Gregorian Date of Easter for a given year. This algorithm comes from the Calendar FAQ, http://www.tondering.dk/claus/cal/
|
|
getGregorianDateFromJulianNumber: Convert Gregorian Date to Julian Date array. Determine Julian Date from a Gregorian Date. If no date is provided, the current date is used. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getJulianDateFromJulianNumber: Convert Julian Date number to Julian Date array. Determine Julian Date from a Julian Date Number. If no date is provided, the current date is used. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getJulianEaster: Determine the Julian Date of Easter for a given year. This algorithm comes from the Calendar FAQ, http://www.tondering.dk/claus/cal/
|
|
getJulianNumberFromDayOfYear: Find the Julian Day Number for a Ordinal number of day in year (1-366) . Return the Julian Date Number for the Ordinal day of year.
|
|
getJulianNumberFromDMY: Convert day, month and year to Julian Date Number.
|
|
getJulianNumberFromGregorianDate: Convert Gregorian Date array to Julian Date number. Determine Julian Date Number from the Gregorian Date. If no date is provided, the current date is used. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getJulianNumberFromJulianDate: Convert Julian Date array number to Julian Date. Determine Julian Date Number from a Julian Date. If no date is provided, the current date is used. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getJulianNumberFromWeekNumber: Find the Julian Day Number of the monday for a Ordinal number of week in year (1-53) . Return the Julian Date Number for the Monday of a Ordinal week of year. This function is ISO 8601 compliant, the first calendar week of a year: week 1, is that week which contains the first Thursday of the year (or, equivalently, the week which includes January 4th of the year; the first day of that week is the previous Monday). If no date is provided, the current date is used.
|
|
getMJDFromGregorianDate: Convert Gregorian Date array to Modified Julian Date number. Determine Modified Julian Date Number from the Gregorian Date. The MJD is used as a form of shorthand Julian date. MJD represents the number of days since midnight on November 17, 1858. If no date is provided, the current date is used. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getMJDFromJulianNumber: Convert Julian Date number to Modified Julian Date Number (MJD). DetermineModified Julian Date Number from a Julian Date Number. The MJD is used as a form of shorthand Julian date. MJD represents the number of days since midnight on November 17, 1858. If no date is provided, the current date is used. References: - http://tycho.usno.navy.mil/mjd.html
|
|
getMonth: Ordinal number of month in year (1-12). Return the ordinal month of year. If no date is provided, the current date is used.
|
|
getMonthFraction: Ordinal number of month in year (1-12) plus fractional part of month. Return the ordinal month of year as a fraction. If no date is provided, the current date is used.
|
|
getMonthJulian: Find Ordinal Month number for a Julian Date Number.
|
|
getSecondsFromTime: Convert hours, minutes and seconds to seconds.
|
|
getTimeFromDays: Convert days to hours, minutes and seconds.
|
|
getUnixSecondsFromGregorianDate: Convert Gregorian Date array to Unix Epoch seconds. Determine seconds since the UNIX epoch (00:00:00 01 Jan 1970 UTC) from the Gregorian Date.
|
|
getWeekOfYear: Ordinal number of week in year (1-53) . Return the week of year as a whole integer. This function is ISO 8601 compliant, the first calendar week of a year: week 1, is that week which contains the first Thursday of the year (or, equivalently, the week which includes January 4th of the year; the first day of that week is the previous Monday). If no date is provided, the current date is used.
|
|
getWeekOfYearFraction: Ordinal number of week in year (1-53) plus fractional part of week. Return the fractional week of year. This function is ISO 8601 compliant, the first calendar week of a year: week 1, is that week which contains the first Thursday of the year (or, equivalently, the week which includes January 4th of the year; the first day of that week is the previous Monday). If no date is provided, the current date is used.
|
|
getWeekOfYearJulian: Ordinal number of week in year (1-53) . Return the week of year as a whole integer. This function is ISO 8601 compliant, the first calendar week of a year: week 1, is that week which contains the first Thursday of the year (or, equivalently, the week which includes January 4th of the year; the first day of that week is the previous Monday). If no date is provided, the current date is used.
|
|
getWeekOfYearFraction: Ordinal number of week in year (1-53) plus fractional part of week. Return the fractional week of year. This function is ISO 8601 compliant, the first calendar week of a year: week 1, is that week which contains the first Thursday of the year (or, equivalently, the week which includes January 4th of the year; the first day of that week is the previous Monday). If no date is provided, the current date is used. Reference: http://webexhibits.org/calendars/week.html#Anchor-48942
|
|
getWeeksInYear: Number of Weeks in year (52-53). Return the number of weeks in the year.
|
|
getYear: Return Gregorian Year number. Return the year. If no date is provided, the current date is used.
|
|
getYearFraction: Return Gregorian Year number plus fractional part of year. Return the year fraction. If no date is provided, the current date is used.
|
|
isDate: Test for the validity of a Gregorian Date.
|
|
isDate: Test if the given year is a leap year. If no year is provided, the current year is used.
|
|
isDate: Test if the given time array hold valid values. If no date is provided, the current date is used.
|
|
mod: returns the modulo after integer division. mod(intNumber, intDivideBy) returns the integer value defined by the modulo arithmetic function (argument-1 modulo argument-2). For positive arguments, it is equivalent to rem (remainder). But unless you are math- aware, you may not get the result for negative arguments that you expect. The ANSI Intrinsic Functions documentation gives this table:. The arguments in the table below would give the following results when used with function mod:
|
|
rem: returns the 'remainder' after integer division. rem(intNumber, intDivideBy) returns the integer value which is the remainder after dividing argument-1 (dividend) by argument-2 (divisor). Since rem returns the 'remainder' after integer division, rem has the sign of the dividend (argument-1). The arguments in the table below would give the following results when used with function rem:
|
|
stripTime: Remove time from Gregorian Date.
|
|
stripTimeJulian: Remove time from Julian Date Number.
|
|
brief description. long description. more long description.
|