still newbie in java, apologize
weekend gaps are totally spoiling my long term tests so I need to do something about it (like closing positions on friday if there are, reopening the same on the monday), rather than test week by week
from
bar.getTime()
what would be the most elegant way to obtain the day of the week( string ?) & the gmt hour (int ?)
I've been hitting a wall there as I didn't find anything about date/time conversion in the wiki nor the API javadoc
the only way I can think about is really ugly (bartime - current week bar time / number of ms per day... not even being sure about when a week bar starts). There are more straightforward ways aren't there ?
thanks for your help or for pointing to the doc that'd cover this