相关疑难解决方法(0)

为什么ColdFusion的大纪元时间是1899年12月30日?

<cfoutput>
    <cfset x = createTimespan(0,0,0,0)>
    <cfset epoch = createDateTime(1899,12,30,0,0,0)>
    <cfset date = epoch + x>
    #date# #dateFormat(date)# #timeFormat(date)#
</cfoutput>
Run Code Online (Sandbox Code Playgroud)

输出:

0 30-Dec-99 12:00 AM

1899年12月30日有什么重要意义?

coldfusion

2
推荐指数
1
解决办法
1105
查看次数

标签 统计

coldfusion ×1