JewelDate-0.1.php Function Reference

JewelDate-0.1.php Test Page


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)

Function Documentation

addClockTime fltTime,
intAddMinutes
 

addClockTime: Return formatted time from Julian Number float. Optionally round time to nearest intger

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltTime float formatted time.
intAddMinutes integer minutes to add to time
Returns:
float formatted clock time
Date:
2003-05-03
See also:

addDayGregorian arrDate = "",
intDays = 0
 

addDayGregorian: Add days to Gregorian Date.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
intDays integer quantity of days to add.
Returns:
arrDate Date array(Y,M,D,H,M,S).
Date:
2003-05-03
See also:

addDayJulian fltJulianNumber = 0,
intDays = 0
 

addDayGregorian: Add days to Julian Date Number.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
intDays integer quantity of days to add.
Returns:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
Date:
2003-05-03
See also:

arrayKeyExists key,
search
 

checkDateGregorian arrDate  ) 
 

checkDateGregorian: Check validity of date array values.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
boolean
Date:
2003-05-03
See also:

DisplayCalDate strControlName = "",
dtmCurrent = "",
strFormat = "Date"
 

fix fltInput = 0  ) 
 

fix: Round towards zero.

Round a floating point number towars zero.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltInput number to round.
Returns:
intReturn integer
Date:
2003-05-03
See also:

fixDate arrDate = ""  ) 
 

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"

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
arrDate valid date array
Date:
2003-05-03
See also:

floatvalx strValue  ) 
 

floatvalx: Return formatted floating point value. Not needed for newer PHP versions. Just rename floatvalx to floatval and remove this function

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
strValue string time.
Returns:
string formatted string
Date:
2003-05-03
See also:

getCalDate strControlName = ""  ) 
 

getClockTime fltJulianNumber = 0,
intRound = 15
 

getClockTime: Return formatted time from Julian Number float. Optionally round time to nearest intger

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltJulianNumber float Julian date-time float.
intRound integer integer to round time to: 10min, 15 min, etc..
Returns:
float formatted clock time
Date:
2003-05-03
See also:

getDateArray ISO_DATETIME = ""  ) 
 

getDateArray: Return a date array object for a valid MYSQL Date-Time string..

Currently only MYSQL datetime string format is supported.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
$ISO_DATETIME ISO DATE-TIME string(YYYY-MM-DD HH:MM:SS).
Returns:
arrDate Date array(Y,M,D,H,M,S)
Date:
2003-05-03
See also:

getDateString arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S)
Returns:
$ISO_DATETIME ISO DATE-TIME string(YYYY-MM-DD HH:MM:SS).
Date:
2003-05-03
See also:

getDayOfMonth arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
day integer
Date:
2003-05-03
See also:

getDayOfMonthFraction arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
day real
Date:
2003-05-03
See also:

getDayOfMonthJulian fltJulianNumber = 0  ) 
 

getDayOfMonthJulian: Find Ordinal Month Day number for a Julian Date Number.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
Returns:
intDay integer day of month.
Date:
2003-05-03
See also:

getDayOfWeek arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
day real
Date:
2003-05-03
See also:

getDayOfWeekFraction arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
day real
Date:
2003-05-03
See also:

getDayOfWeekJulian fltJulianNumber = 0  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltJulianNumber Julian Day Number real.
Returns:
day real
Date:
2003-05-03
See also:

getDayOfWeekJulianFraction fltJulianNumber = 0  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltJulianNumber Julian Day Number real.
Returns:
day real
Date:
2003-05-03
See also:

getDayOfYear arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
day integer
Date:
2003-05-03
See also:

getDayOfYearFraction arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
day real
Date:
2003-05-03
See also:

getDaysFromTime intHour,
intMinute,
intSecond
 

getDaysFromTime: Convert hours, minutes and seconds to days.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intHour integer quantity of hours.
intMinute integer quantity of minutes.
intSecond integer quantity of seconds.
Returns:
intDays integer quandity of days.
Date:
2003-05-03
See also:

getDaysInMonth arrDate = ""  ) 
 

getDaysInMonth: Number of days in a month (28-31). If no date is provided, the current date is used.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
days integer
Date:
2003-05-03
See also:

getDaysInYear intYear = 1  ) 
 

getDaysInYear: Determine the number of days in a given year(365-366). If no year is provided, one is assumed.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intYear year integer.
Returns:
intDaysInYear days integer
Date:
2003-05-03
See also:

getGregorianDateFromJulianNumber fltJulianNumber = 0  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
  • webexhibits.org-christian.html
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
    Returns:
    arrDate Date array(Y,M,D,H,M,S).
    Date:
    2003-05-03
    See also:

getGregorianDateFromMJD fltJulianNumber  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
  • webexhibits.org-christian.html
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
    Returns:
    arrDate Date array(Y,M,D,H,M,S).
    Date:
    2003-05-03
    See also:

getGregorianDateFromUnixSeconds intSeconds = 0  ) 
 

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).

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intSeconds integer quantity of seconds since Unix Epoch.
Returns:
arrDate Date array(Y,M,D,H,M,S).
Date:
2003-05-03
See also:

getGregorianEaster intYear = 0  ) 
 

getGregorianEaster: Determine the Gregorian Date of Easter for a given year.

This algorithm comes from the Calendar FAQ, http://www.tondering.dk/claus/cal/

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intYear year integer.
Returns:
arrDate Date array(Y,M,D,H,M,S).
Date:
2003-05-03
See also:

getJulianDateFromGregorianDate arrDate = ""  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    arrDate Gregorian Date array(Y,M,D,H,M,S).
    Returns:
    arrDate Julian Date array(Y,M,D,H,M,S).
    Date:
    2003-05-03
    See also:

getJulianDateFromJulianNumber fltJulianNumber = 0  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
    Returns:
    arrDate Date array(Y,M,D,H,M,S).
    Date:
    2003-05-03
    See also:

getJulianEaster intYear = 0  ) 
 

getJulianEaster: Determine the Julian Date of Easter for a given year.

This algorithm comes from the Calendar FAQ, http://www.tondering.dk/claus/cal/

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intYear year integer.
Returns:
arrDate Date array(Y,M,D,H,M,S).
Date:
2003-05-03
See also:

getJulianNumberFromDayOfYear intDayOfYear,
intYear
 

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.

Parameters:
intDayofyear integer quantity for day of year.
intYear integer quantity for year of date.
Returns:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).

month integer

Date:
2003-05-03
See also:

getJulianNumberFromDMY intDay = 1,
intMonth = 1,
intYear = 1
 

getJulianNumberFromDMY: Convert day, month and year to Julian Date Number.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intDay integer quantity for day of year.
intMonth integer quantity for month of year.
intYear integer quantity for year of date.
Returns:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
Date:
2003-05-03
See also:

getJulianNumberFromGregorianDate arrDate = ""  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    arrDate Date array(Y,M,D,H,M,S).
    Returns:
    fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
    Date:
    2003-05-03
    See also:

getJulianNumberFromJulianDate arrDate = ""  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    arrDate Julian Date array(Y,M,D,H,M,S).
    Returns:
    fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
    Date:
    2003-05-03
    See also:

getJulianNumberFromWeekNumber intWeekOfYear,
intYear
 

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.

Parameters:
intWeekOfYear integer quantity for week of year.
intYear integer quantity for year of date.
Returns:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).

month integer

Date:
2003-05-03
See also:

getMJDFromGregorianDate arrDate = ""  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    arrDate Date array(Y,M,D,H,M,S).
    Returns:
    fltModifiedJulianNumber real quantity of seconds since Julian Epoch (12 noon 1 JAN -4712) -2,400,000.5 days.
    Date:
    2003-05-03
    See also:

getMJDFromJulianNumber fltJulianNumber = 0  ) 
 

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

  • The Calendar FAQ (http://www.faqs.org)
    Author:
    Trevor Lowing tlowing@lowing.org
    Parameters:
    fltJulianNumber real quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
    Returns:
    fltModifiedJulianNumber real quantity of seconds since Julian Epoch (12 noon 1 JAN -4712) -2,400,000.5 days.
    Date:
    2003-05-03
    See also:

getMonth arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
month integer
Date:
2003-05-03
See also:

getMonthFraction arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
month real
Date:
2003-05-03
See also:

getMonthJulian fltJulianNumber = 0  ) 
 

getMonthJulian: Find Ordinal Month number for a Julian Date Number.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
Returns:
intMonth integer month of year.
Date:
2003-05-03
See also:

getSecondsFromTime intHour,
intMinute,
intSecond
 

getSecondsFromTime: Convert hours, minutes and seconds to seconds.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intHour integer quantity of hours.
intMinute integer quantity of minutes.
intSecond integer quantity of seconds.
Returns:
intSeconds integer quandity of seconds.
Date:
2003-05-03
See also:

getTimeFromDays intDays = 0  ) 
 

getTimeFromDays: Convert days to hours, minutes and seconds.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intDays real quantity of days.
Returns:
arrTime Time array(H,M,S).
Date:
2003-05-03
See also:

getUnixSecondsFromGregorianDate arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
intSeconds integer quantity of seconds since Unix Epoch.
Date:
2003-05-03
See also:

getWeekOfYear arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
week integer
Date:
2003-05-03
See also:

getWeekOfYearFraction arrDate = ""  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
week integer
Date:
2003-05-03
See also:

getWeekOfYearJulian fltJulianNumber = 0  ) 
 

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.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
week integer
Date:
2003-05-03
See also:

getWeekOfYearJulianFraction fltJulianNumber = 0  ) 
 

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

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
month integer
Date:
2003-05-03
See also:

getWeeksInYear intYear = 0  ) 
 

getWeeksInYear: Number of Weeks in year (52-53).

Return the number of weeks in the year.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intYear integer year.
Returns:
week integer
Date:
2003-05-03
See also:

getYear arrDate = ""  ) 
 

getYear: Return Gregorian Year number.

Return the year. If no date is provided, the current date is used.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
year integer
Date:
2003-05-03
See also:

getYearFraction arrDate = ""  ) 
 

getYearFraction: Return Gregorian Year number plus fractional part of year.

Return the year fraction. If no date is provided, the current date is used.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
year integer
Date:
2003-05-03
See also:

isDate arrDate = ""  ) 
 

isDate: Test for the validity of a Gregorian Date.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
boolean.
Date:
2003-05-03
See also:

isLeapYear intYear = ""  ) 
 

isDate: Test if the given year is a leap year. If no year is provided, the current year is used.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intYear integer year.
Returns:
boolean.
Date:
2003-05-03
See also:

isTime arrDate  ) 
 

isDate: Test if the given time array hold valid values. If no date is provided, the current date is used.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
boolean.
Date:
2003-05-03
See also:

mod intNumber = 0,
intDivideBy = 0
 

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:

Argument-1 Argument-2 Return 11 5 1 -11 5 4 11 -5 -4 -11 -5 -1
Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intNumber dividend.
intDivideBy divisor.
Returns:
modulus real
Date:
2003-05-03
See also:

rem intNumber = 0,
intDivideBy = 0
 

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:

Argument-1 Argument-2 Return 11 5 1 -11 5 -1 11 -5 1 -11 -5 -1
Author:
Trevor Lowing tlowing@lowing.org
Parameters:
intNumber dividend.
intDivideBy divisor.
Returns:
remainder real
Date:
2003-05-03
See also:

stripTime arrDate = ""  ) 
 

stripTime: Remove time from Gregorian Date.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
arrDate Date array(Y,M,D,H,M,S).
Returns:
arrDate Date array(Y,M,D,H,M,S).
Date:
2003-05-03
See also:

stripTimeJulian fltJulianNumber = 0  ) 
 

stripTimeJulian: Remove time from Julian Date Number.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
Returns:
fltJulianNumber integer quantity of seconds since Julian Epoch (12 noon 1 JAN -4712).
Date:
2003-05-03
See also:

testFunctions  ) 
 

brief description. long description. more long description.

Author:
Trevor Lowing tlowing@lowing.org
Parameters:
variable description
Returns:
value description
Date:
YYYY-MM-DD
See also:


Generated on Tue Jul 15 13:55:05 2003 for docs by doxygen 1.3.2