Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: EFI
  
 
 
 EFI
 To: khubaib khalid
  Where is khubaib khalid?
 HaroonAbad
 Pakistan
 khubaib khalid
 Tags
Subject: RE: How can subtruct or add time in time
Thread ID: 33732 Message ID: 33746 # Views: 1 # Ratings: 0
Version: Visual FoxPro 8 Category: General VFP Topics
Date: Tuesday, December 02, 2003 7:37:24 PM         
   


> How can subtruct time in time
> 09:30+30= 10:00

convert the 09:30 to a datetime field such as the following and add the time then convert out the time portion.

ctimetoadd = 30
ctime = "09:30"
ctemptime = CTOT(DTOC(DATE())+ " " +ctime)

cnewTime = LEFT(TIME(ctemptime+ctimetoadd),5)



ENTIRE THREAD

How can subtruct or add time in time Posted by khubaib khalid @ 12/2/2003 5:25:40 PM
RE: How can subtruct or add time in time Posted by Toby Mosby @ 12/2/2003 7:37:24 PM
RE: How can subtruct or add time in time Posted by lucy alice pilanga @ 12/3/2003 4:40:19 AM
RE: How can subtruct or add time in time Posted by Boudewijn Lutgerink @ 12/3/2003 7:53:55 AM
RE: How can subtruct or add time in time Posted by Tariq mehmood @ 12/6/2003 6:12:47 AM