Hello,
I would like to ask about the IDataService.getOfflineTimeDomain(int shift) method.
I have used it to get the last two offline time domains (current and previous one - indexed 0 and -1). I found that the results are slightly different on local and remote strategy run.
On remote:
Quote:
TimeDomain -1: 1410555600000 (Fri Sep 12 21:00:00 UTC 2014) - 1410728400000 (Sun Sep 14 21:00:00 UTC 2014)
TimeDomain 0: 1411160400000 (Fri Sep 19 21:00:00 UTC 2014) - 1411333200000 (Sun Sep 21 21:00:00 UTC 2014)
On local:
Quote:
TimeDomain -1: 1410555599871 (Fri Sep 12 20:59:59 UTC 2014) - 1410728411110 (Sun Sep 14 21:00:11 UTC 2014)
TimeDomain 0: 1411160397735 (Fri Sep 19 20:59:57 UTC 2014) - 1411333200000 (Sun Sep 21 21:00:00 UTC 2014)
Could someone please explain what causes this differences? And do I have the guarantee that results on remote run will always be "rounded" to exact hour?
Code sample used to generate those resuls:
for (int i = 0; i > -2; i--) {
ITimeDomain timeDomain = dataService.getOfflineTimeDomain(i);
long start = timeDomain.getStart();
long end = timeDomain.getEnd();
context.getConsole().getOut().println("TimeDomain " + i + ": " + start + " (" + new Date(start) + ") - " + end + " (" + new Date(end) + ")");
}
Regards.