Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change time format
Message
De
11/03/2003 21:22:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00763687
Message ID:
00764563
Vues:
23
How's this?
FUNCTION Time12Hr
    PARAMETERS cTm
    LOCAL nHr

    IF PCOUNT()==0 THEN
        cTm = TIME()
    ENDIF
    nHr = VAL(LEFT(m.cTm,2))
    RETURN TRANSFORM((m.nHr+11)%12+1)+" "+IIF(m.nHr>=12,"PM","AM")
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform