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

 

One response to “FT_MIL2CIV

  1. Pingback: FT Date-Time | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.