Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ajuda com campo DATAHORA
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00794446
Message ID:
00794509
Vues:
10
This message has been marked as a message which has helped to the initial question of the thread.
>Quando e digo que preciso subtrair sua HORA seria
>
>17:23:01 - 16:20:01 = 01:03:00
>
a       = ctot("30/05/2003 00:00:00")
b       = ctot("30/05/2003 01:01:00")
minutos = iif(mod((b-a)/60, 60)=<59,mod((b-a)/60, 60),0)
hora    = int(((b-a) / 60) /60)
horaeditada = transform(hora,"@L 999")+":"+transform(minutos,"@L 99")
? horaeditada
Obs: Não há precisão de segundos, subtrai minutos e horas

Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform