SECOND Function


Returns the second from a SAS time or datetime value

Category: Date and Time

Syntax

SECOND ( time datetime )

Arguments

time

  • specifies a SAS expression that represents a SAS time value.

datetime

  • specifies a SAS expression that represents a SAS datetime value.

Details

The SECOND function produces a positive, numeric value that represents a specific second of the minute. The result ranges from 0 through 59.

Examples

SAS Statements

Result

time= ' 3:19:24 ' t;

s=second(time);

put s;

24

See Also

Functions:

  • 'HOUR Function' on page 579

  • 'MINUTE Function' on page 647




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net