Returns the second from a SAS time or datetime value
Category: Date and Time
SECOND ( time datetime )
time
specifies a SAS expression that represents a SAS time value.
datetime
specifies a SAS expression that represents a SAS datetime value.
The SECOND function produces a positive, numeric value that represents a specific second of the minute. The result ranges from 0 through 59.
SAS Statements | Result |
---|---|
time= ' 3:19:24 ' t; s=second(time); put s; | 24 |
Functions:
'HOUR Function' on page 579
'MINUTE Function' on page 647