Nov is 10, actually. The month number is 0-based (for consistency with localtime).
In reply to Re^3: date and time difference by ikegami in thread date and time difference by invisiblehand