FT_ACCTADJ() Adjust beginning or ending fiscal pd. dates to acctg. dates FT_ACCTMONTH() Return accounting month data FT_ACCTQTR() Return accounting quarter data FT_ACCTWEEK() Return accounting week data FT_ACCTYEAR() Return accounting year data FT_ADDWKDY() Return true number of days to add given number of workdays FT_CALENDAR() Display date/time calendar, find a date, return calendar data. FT_CIV2MIL() Convert usual civilian format time to military time. FT_DATECNFG() Set beginning of year/week for FT_ date functions FT_DAYOFYR() Return calendar, fiscal or accounting day data FT_DAYTOBOW() Calculate no. of days between date and beginning of week FT_DOY() Find number of day within year FT_EASTER() Return the date of Easter FT_ELAPMIN() Return difference, in minutes, between two mil format times. FT_ELAPSED() Return elapsed time between two days and/or times FT_ELTIME() Compute difference between times in hours, minutes, seconds. FT_FDAY() Return first day of the month FT_LDAY() Return last day of the month FT_MADD() Add or subtract months to/from a date FT_MIL2CIV() Convert time in military format to civilian format. FT_MIL2MIN() Convert time in military format to number of minute of day. FT_MIN2DHM() Convert numeric minutes to days, hours and minutes. FT_MIN2MIL() Convert minute of day to military format time. FT_MONTH() Return Calendar or Fiscal Month Data FT_QTR() Return Calendar or Fiscal Quarter Data. FT_SYS2MIL() Convert system time to military time format. FT_WEEK() Return calendar or fiscal week data FT_WORKDAYS() Return number of work days between two dates FT_WOY() Find number of week within year FT_YEAR() Return calendar or fiscal year data
Tag Archives: FT_CALENDAR
FT_CALENDAR
FT_CALENDAR() Display date/time calendar, find a date, return calendar data. Syntax FT_CALENDAR ( [ <nRow> ], [ <nCol> ], [ <cColor> ], [ <lShadow> ] , [ <lShowHelp> ] ) -> aRetVal Arguments <nRow> is an optional screen row for calendar display, default row 1. <nCol> is an optional screen col for calendar display, default col 63. <cColor> is an optional color string for displayed messages, default is bright white text over green background. <lShadow> is an optional logical variable. If true (.T.), it uses FT_SHADOW() to add a transparent shadow to the display, default (.F.). <lShowHelp> is an optional logical variable. If true, uses FT_XBOX to display a four line help message if the F1 key is pressed, default (.F.). Returns aRetVal is an 8 element array containing date, month, day, year, month (in character format), day of the week, julian day and current time. Description FT_CALENDAR() simply displays today's date, time and julian day in a two line display with an optional box shadow. Cursor keys may be used to page through the calendar by day, week, month or year increments. Returns an 8 element array of calendar data: Element Value [1] Date in current date format. [2] Numeric month number. [3] Numeric day number. [4] Numeric year number. [5] Month in character format. [6] Day of the week in character format. [7] Numeric Julian day. [8] Current time in time format. WARNING: FT_CALENDAR uses FT_SHADOW and FT_XBOX from the Nanforum Toolkit! Examples LOCAL aRetVal[8] CLS aRetVal := FT_CALENDAR (10,40,'W+/RB',.T.,.T.) ?aRetVal[1] // Result: 04/20/91 ?aRetVal[2] // Result: 4 ?aRetVal[3] // Result: 20 ?aRetVal[4] // Result: 1991 ?aRetVal[5] // Result: April ?aRetVal[6] // Result: Saturday ?aRetVal[7] // Result: 110 ?aRetVal[8] // Result: 12:45:20 Source: CALENDAR.PRG Author: Isa Asudeh
See Also: FT_DAYOFYR()