Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Yuri Rubinov
  Where is Yuri Rubinov?
 Philadelphia
 Pennsylvania - United States
 Yuri Rubinov
 To: putraaridana black
  Where is putraaridana black?
 denpasar
 Indonesia
 putraaridana black
 Tags
Subject: RE: time calculation
Thread ID: 33916 Message ID: 33969 # Views: 2 # Ratings: 0
Version: Visual FoxPro 7 Category: Other
Date: Friday, December 05, 2003 2:59:46 PM         
   


Something like this:

lctime1="10.20 pm"
lctime2="11.30 pm"
* format them properly, if needed for ctot() translation
lctime1=CTOT(CHRTRAN(lctime1,".",":"))
lctime2=CTOT(CHRTRAN(lctime2,".",":"))
* calculate minutes
lnmin=(lctime2-lctime1)/60

?FLOOR(lnmin/60)," hour(s) ",TRANSFORM(lnmin%60)," min"


>
> dark black
> hii, i wonder how to calculating time
> ex. time
> in 10.20 pm
> out 11.30 pm
> the result i expect is 1 hour 10 minute, is there any fox function to do so
> thank's


ENTIRE THREAD

time calculation Posted by putraaridana black @ 12/5/2003 3:23:37 AM
RE: time calculation Posted by Lucy Alice Pilanga @ 12/5/2003 4:38:08 AM
RE: time calculation Posted by Tariq mehmood @ 12/5/2003 5:05:13 AM
RE: time calculation Posted by Yuri Rubinov @ 12/5/2003 2:59:46 PM