Second

Description

For a date/time value, returns the ordinal for the second, an integer 0-59.

Category

Date and time functions

Syntax

Second(date) 

See also

DatePart, Hash, Minute

Parameters

Parameter
Description
date
A date

Usage

When passing a date/time value as a string, enclose it in quotes. Otherwise, it is interpreted as a number representation of a date/time object.

Example

<!--- This example shows the use of Hour, Minute, and Second --->
<html>
<head>
<title>
Second Example
</title>
</head>

<body bgcolor = silver>
<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>

</body>
</html>

LiveDocs comments are not longer enabled for ColdFusion 5.0. Please use one of the following resources instead.

ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 5.0