Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time format
Message
De
23/02/2009 02:20:18
 
 
À
23/02/2009 01:53:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01383407
Message ID:
01383418
Vues:
57
>> It still returns the time as 14:52..

Are you using the TIME() functions? that can't return 12 hour format, from the help file:
"Use SET HOURS TO without 12 or 24 to return to the default 12-hour format.

TIME( ) always returns a value in 24-hour format and isn't affected by SET HOURS. The value returned by DATETIME( ) is determined by the current SET HOURS setting.

SET HOURS is scoped to the current data session."
SET HOURS effect the display of time in fields.

you could use DATETIME() to get the time only, like this:
SET HOURS TO 12
lcTime=RIGHT(TTOC(DATETIME()),11)
?lcTime
Gary.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform