Spec-Zone.ru › ColdFusion

second

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

second(date) → returns numeric

Member Function Syntax

date.second()

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: hour minute month quarter week year

    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

    Seconds of a datetime object

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

    Expected Result: 25

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/second

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API