把对象JSON序列化,然后反序列化后发现时间少了八小时.因为在东八区,所以序列的时候按照1970-01-01:08:00:00为基数取得差值,而反序列化的时候以1970-01-01:00:00:00作为的基数反序列成了标准时间,所以需要ToLocalTime一下或者手动+8. class Program { static void Main(string[] args) { UserInfo userInfo = new UserInfo(); userInfo.CreateTime = Dat
os.date函数定义 原型:os.date ([format [, time]]) 解释:返回一个按format格式化日期.时间的字串或表. lua源码中os.date的注释如下: --- --- Returns a string or a table containing date and time, formatted according --- to the given string `format`. --- --- If the `time` argument is present,