' 减去62135596800是将“以公元1年1月1日0点为基准”改为“以1970年1月1日0点”为基准html
因此,数据库datetime的默认值 : 0000-00-00 00:00:00 转化为time.Time 结构后,其Unix()时间戳是int64的,可是是负数,由于0是 1970年1月1日0点 .数据库
http://blog.sina.com.cn/s/blog_53ed87c10100fq6b.htmlhtm