R语言中事件类型有两类:"POSIXlt"
and "POSIXct",这两类个类型的数据有不同的含义:
POSIXct是存储从1970年(unix系统诞生之时?)之后到所存储日期之间的秒数,这种格式比较适合数据框存储,因此从外部读取的数据就有可能是这种类型
POSIXlt是存贮按年月天时分秒方式存储的,比较面向人类的理解
有关datetime class 的详细描述:http://stat.ethz.ch/R-manual/R-devel/library/base/html/DateTimeClasses.html
这两个事件类型之间的转换的函数参照这篇文章:http://stackoverflow.com/questions/10699511/difference-between-as-posixct-as-posixlt-and-strptime-for-converting-character-v