Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ajuda com campo DATAHORA
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00794446
Message ID:
00794477
Views:
9
>Tenho uma variável.
>
>Por exemplo:
>m.dt
>m.dt2
>
>E no seu valor eu tenho (12/02/2003 17:25:00)
>Preciso pegar somente a sua hora (17:25:00) e quero pegar outra variável m.dt2 e nela eu tenho o valor de (12/02/2003 16:25:00) e preciso pegar somente a sua hora também e subtrair (m.dt - m.dt2) e ele precisaria me retornar (01:00:00) entendeu?
>
>Alguem sabe como eu posso fazer isso?

Thiago;
a = ctot("30/05/2003 11:00:00")
b = ctot("30/05/2003 14:00:00")
? ((b-a) /60) /60  && em horas
? ((b-a) /60)      && em minutos
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform