Hello,
i thought calling rawtime(0) would give me the number of seconds elapsed since 1/1/1970 - with the code applied to a daily chart does this give the number of seconds to the start of the daily bar or the end of the daily bar, or current time of daily bar? cant work it out!
second question is: when im calling the number of millisecs elapsed from 1/1/1970 to a specific date like 26th august 2008, using this code (ie new Date(2008, 8, 26) does this code give me the number of millisecs up until the start or end of 26th aug 2008? ie at 8/26/2008 00:00:00 or 8/26/2008 23:59:00 or up to some other time of the daily bar?
this is the code im using and having problems with, i thought that the 2 times (in milliseconds) shown in the formula output window should be the same, but they are 30.5 days or a month apart, why is this the case? code im using is attached below.
thank you for any help.
regards
rod
i thought calling rawtime(0) would give me the number of seconds elapsed since 1/1/1970 - with the code applied to a daily chart does this give the number of seconds to the start of the daily bar or the end of the daily bar, or current time of daily bar? cant work it out!
second question is: when im calling the number of millisecs elapsed from 1/1/1970 to a specific date like 26th august 2008, using this code (ie new Date(2008, 8, 26) does this code give me the number of millisecs up until the start or end of 26th aug 2008? ie at 8/26/2008 00:00:00 or 8/26/2008 23:59:00 or up to some other time of the daily bar?
this is the code im using and having problems with, i thought that the 2 times (in milliseconds) shown in the formula output window should be the same, but they are 30.5 days or a month apart, why is this the case? code im using is attached below.
thank you for any help.
regards
rod
Comment