While creating BasicTimeSeries, the following code contain "SerialData.JANUARY"
What will be return of "SerialData.JANUARY" ?? Is it return integer??
BasicTimeSeries t1 = new BasicTimeSeries("USD/GBP");
try {
t1.add(new Day(2, SerialDate.JANUARY, 2001), new Double(1.4956));
What will be return for SerialData.JANUARY?
Re: What will be return for SerialData.JANUARY?
It is an int, and the value is 1.
Regards,
Dave Gilbert
Regards,
Dave Gilbert
Re: What will be return for SerialData.JANUARY?
Is it SerialDate.February = 2
SerialDate.March =3
SerialDate.April =4
..........
SerialDate.December =12 ??
Is it ok for me to insert a number (1) instead of SerialDate.JANUARY in the following code??
BasicTimeSeries t1 = new BasicTimeSeries("USD/GBP");
try {
t1.add(new Day(2, 1, 2001), new Double(1.4956));
SerialDate.March =3
SerialDate.April =4
..........
SerialDate.December =12 ??
Is it ok for me to insert a number (1) instead of SerialDate.JANUARY in the following code??
BasicTimeSeries t1 = new BasicTimeSeries("USD/GBP");
try {
t1.add(new Day(2, 1, 2001), new Double(1.4956));
Re: What will be return for SerialData.JANUARY?
Yes, you can substitute the values 1 to 12 if that is more convenient.
Regards,
Dave Gilbert
Regards,
Dave Gilbert