Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime conversion solution
Message
From
13/10/2005 12:17:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/10/2005 12:13:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01058733
Message ID:
01058742
Views:
11
>>ltTime = ctot('0:'+ltrim(str(45)))
>>lt10MinsLater = ltTime + 10 * 60
>>
>>
>>Thanks for the fast reply. But how can i add the current date to the ltTime so it would be something similar to this..
>> between(datetime(), (dtoc(date())+lttime), (dtoc(date())+lt10MinsLater))
>>I think the above code wont work, but that's the idea im trying to get at..
>
>I had made updates to my reply. What I still didn't clearly understood is what you store. If it's 45 ok 45 but what if say "01:30" or your spinner simply gets 'minutes'? Assuming the latter:
>
>lnBaseValue = 45
>ltStart = dtot(date())+m.lnBaseValue*60
>ltEnd   = m.ltStart + 10 * 60
>between(datetime(), m.ltStart, m.ltEnd)
>
Cetin

BTW a little warning about this. When datetime() = m.ltStart or m.ltEnd you have a chance to miss it (due to how internally datetime is stored). This one looks better to me:
lnNow = round(datetime()-dtot(date()),0)
lnBaseValue = 45
between(m.lnNow, m.lnBaseValue*60, (m.lnBaseValue+10)*60)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform