2012年2月15日

时间戳日期转换

摘要: 时间戳转换如何在不同编程语言中获取现在的Unix时间戳(Unix timestamp)?JavatimeJavaScriptMath.round(new Date().getTime()/1000) getTime()返回数值的单位是毫秒Microsoft .NET / C#epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000MySQLSELECT unix_timestamp(now())PerltimePHPtime()PostgreSQLSELECT extract(epoch FRO 阅读全文

posted @ 2012-02-15 18:01 小兵张嘎 阅读(2689) 评论(0) 推荐(0) 编辑

导航