For-loop Example p.88 HELP


I have typed exactly the for-loop example on page 88, and have no errors. So far so good. Now, considering the output can someone tell me if it’s what it should be?

2012-02-08 16:21:13.821 DateList[29731:707] Here is a date: 2012-02-08 14:21:13 +0000
2012-02-08 16:21:13.823 DateList[29731:707] Here is a date: 2012-02-09 14:21:13 +0000
2012-02-08 16:21:13.824 DateList[29731:707] Here is a date: 2012-02-07 14:21:13 +0000
Program ended with exit code: 0

Is it the issue with the time zone?? or is it O.K ?


Whenever I claim to have typed something exactly as it is “in the book” someone usually points out what I actually type is just a wee bit different than it is supposed to be. Of corse, eye hav knot maid iny misteaks this yeer! :open_mouth:

I suspect that you fond your error since posting last Feb. If not, why not copy your code and paste it between a the code tags and left us take a look. :slight_smile: BTW, your output looks correct. But I don’t know where you are seeing the “exit code.”