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