FT Date-Time

 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

FT_SYS2MIL

FT_SYS2MIL()
 Convert system time to military time format.

 Syntax

      FT_SYS2MIL() -> cMILTIME

 Arguments

     none

 Returns

     <cMILTIME>  character string of form hhmm, where 0<=hh<24.

 Description

     Return current system time as character string in military format.

 Examples

     FT_SYS2MIL() -> 1623

 Source: MILTIME.PRG

 Author: Alexander B. Spencer

See Also: FT_MIL2CIV() FT_CIV2MIL()

 

FT_MIN2MIL

()
 Convert minute of day to military format time.

 Syntax

      FT_MIN2MIL( <nMINUTE> ) -> cMILTIME

 Arguments

     <nMINUTE>  numeric integer representing minute of day.

 Returns

     <cMILTIME>  character string of form hhmm, where 0<=hh<24.

 Description

     Converts minute of the day to military format time.

 Examples

     FT_MIN2MIL( 279 ) -> 0439

 Source: MILTIME.PRG

 Author: Alexander B. Spencer

See Also: FT_MIL2MIN() FT_MIL2CIV() FT_CIV2MIL() FT_SYS2MIL()

 

FT_MIL2MIN

FT_MIL2MIN()
 Convert time in military format to number of minute of day.

 Syntax

      FT_MIL2MIN( <cMILTIME> ) -> nMINUTE

 Arguments

     <cMILTIME>  character string of form hhmm, where 0<=hh<24.

 Returns

     <nMINOFDAY>  numeric value representing minute of day.

 Description

     Converts time in military format to number of minute of the day.

 Examples

     FT_MIL2MIN( "1729" ) -> 1049

 Source: MILTIME.PRG

 Author: Alexander B. Spencer

See Also: FT_MIN2MIL() FT_CIV2MIL() FT_MIL2CIV() FT_SYS2MIL()

 

FT_MIL2CIV

FT_MIL2CIV()
 Convert time in military format to civilian format.

 Syntax

      FT_MIL2CIV( <cCIVTIME> ) -> dMILTIME

 Arguments

     <cMILTIME>  character string of form hhmm, where 0<=hh<24.

 Returns

     <cCIVTIME>  character string of form hh:mm (am,pm,n or m),
        where 0<hh<12.

 Description

     Converts time from military to civilian format

 Examples

     FT_MIL2CIV( "1640" ) ->  4:40 pm

     FT_MIL2CIV( "0440" ) ->  4:40 am

     FT_MIL2CIV( "1200" ) -> 12:00 n

     FT_MIL2CIV( "0000" ) and FT_MIL2CIV( "2400" ) -> 12:00 m

     Caution:  leading blanks are irrelevant.

 Source: MILTIME.PRG

 Author: Alexander B. Spencer

See Also: FT_CIV2MIL() FT_SYS2MIL() FT_MIL2MIN() FT_MIN2MIL()

 

FT_CIV2MIL

FT_CIV2MIL()
 Convert usual civilian format time to military time.

 Syntax

      FT_CIV2MIL( <cCIVTIME> ) -> cMILTIME

 Arguments

     <cCIVTIME>  character string of form hh:mm (am,pm,n or m),
        where 0<hh<12.

 Returns

     <cMILTIME>  character string of form hhmm, where 0<=hh<24.

 Description

     Converts time from 12-hour civilian format to military.

 Examples

     FT_CIV2MIL( " 5:40 pm" ) -> 1740

     FT_CIV2MIL( " 5:40 am" ) -> 0540

     FT_CIV2MIL( "12:00 n" ) -> 1200

     FT_CIV2MIL( "12:00 m" ) -> 0000

     Caution:  leading blanks are irrelevant; p,a,n,m must be preceded by
               one and only one space.

 Source: MILTIME.PRG

 Author: Alexander B. Spencer

See Also: FT_MIL2CIV() FT_SYS2MIL() FT_MIL2MIN() FT_MIN2MIL()