PureBytes Links
Trading Reference Links
|
It should be simple enough to do this in an AFL function ...
For example ...
TimeInSeconds = Hour() * 3600 + Minute() * 60 + Second();
... or ...
TimeInMinutes = Hour() * 60 + Minute() + Second() / 60;
Then you can perform whatever math you want on the result and convert
it back if you want to.
Dates are a little trickier but the concept is the same.
--- In amibroker@xxxxxxxxxxxxxxx, "Christoper" <chrisismyname@xxxx>
wrote:
> I've done some searching in the 3rd party dll's but couldn't find
> anything... just wondering if anyone has done any work with
date/time
> functions.
>
> i.e. DateTime of (1050610) - 2 days usually works with simple math
> (minus sign) but let's say the Date is the 1st... then things break
> down... 1050601-2=1050599 which doesn't make sense.
>
> OR with Time...
> 070100 - 2mins(200) = doesn't make sense either.
>
> Also checked the library to no avail...
>
> if anyone knows if someone who has put this kind of stuff together
> that would be awesome!!!
>
> Thanks very much,
> chris
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|