![]() Chapter Contents |
![]() Previous |
![]() Next |
| TIMEAMPMw.d |
| Category: | Date and Time |
| Alignment: | right |
| Syntax | |
| Syntax Description | |
| Details | |
| Comparisons | |
| Examples | |
| See Also |
Syntax |
| TIMEAMPMw.d |
| Default: | 11 |
| Range: | 2-20 |
| Requirement: | must be less than w |
| Details |
The TIMEAMPMw.d format writes SAS time values in the form hh:mm:ss.ss with AM or PM, where
Make w large enough to produce the desired results. To obtain a complete time value with three decimal places and AM or PM, you must allow at least 11 spaces (hh:mm:ss PM). If w is less than 5, SAS writes AM or PM only.
| Comparisons |
| Examples |
The example table uses the input value of 59083, which is the SAS time value that corresponds to 4:24:43 PM.
| SAS Statements | Results |
|---|---|
----+----1----+ |
|
put begin timeampm3.; |
PM |
put begin timeampm5.; |
4 PM |
put begin timeampm7.; |
4:24 PM |
put begin timeampm11.; |
4:24:43 PM |
| See Also |
| Format:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.