TIMEPART Function


TIMEPART Function

Extracts a time value from a SAS datetime value

Category: Date and Time

Syntax

TIMEPART ( datetime )

Arguments

datetime

  • specifies a SAS 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 AM on any date:

 datim=datetime();  time=timepart(datim); 



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