Hello,
I was trying to convert datetime of Amibroker to Epoch time. I used the following code
SetBarsRequired(sbrAll,sbrAll);
RefDate=10000 * (1970 - 1900) + 100 * 1 + 1; //Origin date to calculate epoch
RefDateTime=DateTimeConvert(format=2,RefDate);
Epoch=DateTimeDiff( DateTime(), RefDateTime );
The answer is not exactly correct. I tried to put the answer in the following Epoch time converter. It is not matching.
Any help is appreciated
Regards
__._,_.___
Posted by: Kunal Shah <kunalshah305@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (1) |
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
.
__,_._,___
EmoticonEmoticon