C#将当前时间转化成int类型数字
DateTime time = DateTime.Now; time.Year*Math.Pow(10,10)+ time.Month*Math.Pow(10,8)+ time.Day*Math.Pow(10,6)+ time.Hour*Math.Pow(10,4)+ time.Minute*Math.Pow(10,2)+time.Second
Math.Pow(a,b)表示求a的b次方
- 上一篇 »php数组key会将数字类型默认转换为int
- 下一篇 »php将时间戳 转化为天小时分秒