Millisecond

Description

Returns the milliseconds of a specified date object.

Returns

Numeric

Syntax

millisecond(dateObject)
millisecond(dateObject)
millisecond(dateObject)

History

  • ColdFusion (2021 release): Added the function.

Category

Date and time functions

Parameters

Parameter

Required

Description

date

Yes

Date/time object, in the range 100 AD-9999 AD..

timeZone No Specify the time zone. You may use the function getTimeZomeInfo to retrieve the time zone of a place.

Example

<cfscript>
writeOutput(millisecond(now()))
</cfscript>
<cfscript> writeOutput(millisecond(now())) </cfscript>
<cfscript>
    writeOutput(millisecond(now()))
</cfscript>

Output

223

Get help faster and easier

New user?