TIMEPART Function
Extracts a time value from a SAS datetime value.
Syntax
Required Argument
datetime
is a numeric constant,
variable, or expression that represents a SAS datetime value.
Example
SAS assigns
TIME a SAS value that corresponds to 10:40:17 if the following statements
are executed exactly at 10:40:17 a.m. on any date:
datim=datetime();
time=timepart(datim);