Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wish: Time format?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00268296
Message ID:
00268871
Vues:
18
Evan,

Those results can be further numerically manipulated. If all you want is display format of the time variable:

? ttoc( X, 2 )

>But the results are still unwieldy. The first result in your example is a datetime, the second is a numeric in seconds. If we have a time datatype these would be much simpler.
>
>* add 3 hours and 30 minutes to 4pm to get 7:30pm
> 4pm + 3:30 = 7:30pm
>
>* The difference (or lapsed time) between 7:30pm and 4pm is 3 hours and 30 mins
>7:30pm - 4pm = 3:30
>
>
>>? {, 17:30:32} + 400
>>? {, 17:30:32} - {,5:22:57}
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform