> -----Original Message----- > From: Andreas Färber [mailto:afaerber@xxxxxxx] > Sent: Saturday, January 07, 2012 1:44 AM > > use int64 when compare two time > > > > int32 only represent only 136 years when comparing two times based on > second. It would be better to use int64. > > int32 and int64 are softfloat types and should not be used here. > > Do you have an actual use case that breaks with int / int32_t? > The range of int is from (-2^31~2^31-1). This means it only can express (-2^31~2^31-1) seconds, about -68 years ~ +68 years compare with now. You can use "-rtc base=YYYY-MM-DD" to set the RTC start date and if (base - now) greater than 68 year, then you will see error message in windows guest and the date will roll back to 1944. best regards yang -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html