|
Second
DescriptionExtracts
the ordinal for the second from a date/time object.
ReturnsAn integer
in the range 0–59.
Function syntaxSecond(date)
Parameters
Parameter
|
Description
|
date
|
A date/time object
|
UsageWhen passing
a date/time object as a string, enclose it in quotation marks. Otherwise,
it is interpreted as a number representation of a date/time object.
Example<!--- This example shows the use of Hour, Minute, and Second --->
<h3>Second Example</h3>
<cfoutput>
The time is currently #TimeFormat(Now())#.
We are in hour #Hour(Now())#, Minute #Minute(Now())#
and Second #Second(Now())# of the day.
</cfoutput>
|