Siebel VB Language Reference > Methods Reference for Siebel VB > Date and Time Methods >

Extract Second From Date-Time Value Method


The Extract Second From Date-Time Value method returns the seconds component of a date and time value. The return value is an integer variable type in the range of 0 through 59. If the return value is null, then this method returns a null variable type. For more information, see Variants.

Format

Second(time)

The argument that this method uses is the same as the argument that the Convert String to Time method uses. For more information, see Convert String to Time Method.

If the value in the time argument does not evaluate to a date and time or to a time value, then this method returns 0 (zero). For example:

  • The value 13:26:39 or the value 1:45:12 PM returns a valid results.
  • The value 1326 returns a 0.
Example

For an example, see Extract Minute From Date-Time Value Method.

Siebel VB Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.