second

Extracts the ordinal for the second from a date/time object.

second(date) → returns numeric

Member Function Syntax

date.second()

Argument Reference

date date
Required

A date/time object

Compatibility

ColdFusion:

Member function is available in CF11+.

Lucee:

Member function is available in Lucee4.5+.

Examples
Sample code invoking the second function

dt = createdatetime(2016,1,1,5,30,25);
s = second( dt );
writeoutput( s );

Expected Result: 25

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub