Chapter Contents

Previous

Next
SECOND

SECOND


Returns the second from a SAS time or datetime value

Category: Date and Time


Syntax
Arguments
Details
Examples
See Also

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
MINUTE


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.