Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Twenty minutes ago
Message
From
06/09/2006 16:11:55
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01151468
Message ID:
01151485
Views:
41
Yes, I was to fast. However, to be sure that you always get the correct result, storedtime must be a datetime value, and the answer will be
Datetime()-storedtime>=1200
>Tore,
>
>>Time() - storedtime >=1200 && (20*60)
>
>I think you typed too fast, is not *that* easy <g>
>
>
>Assuming that StoredTime is allways from today, it will be more like this
>
>? Datetime() - Ctot(Dtoc(Date()) + ' ' + StoredTime) >= 20 * 60
>
>I'll guess a good estimate would be
>
>ltCurrent = Datetime()
>ldDate = Date() + iif(ttoc(ltCurrent, 2) >= StoredTime, 0, 1)
>ltCurrent - Ctot(Dtoc(ldDate) + ' ' + StoredTime) >= 20 * 60
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform