Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove seconds in TIME() & subtract it.........
Message
De
11/08/2004 07:38:27
 
 
À
11/08/2004 06:57:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00930059
Message ID:
00932279
Vues:
25

hi,

i get result 36:40

i think it must be 24:40 if you sum the times manually


You have SET("Hours")=12.

With SET HOUR TO 12 you cannot to use CTOT() and TTOC() for compute time diff/summ.
clear
SET HOUR TO 24
timeSum=		CTOT('04:45:00')-CTOT('0:')
timeSum=m.timeSum+(	CTOT('11:30:00')-CTOT('0:'))
timeSum=m.timeSum+(	CTOT('08:25:00')-CTOT('0:'))

? STUFF(TTOC(CTOT('0:')+m.timeSum,2),1,2,;
     STR(INT(VAL(TTOC(CTOT('0:')+m.timeSum,2)))+24*INT(m.timeSum/86400)))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform