Converts a SAS datetime value to the datetime value of the specified
locale, and then writes the value as a datetime with a.m. or p.m.
Category: |
Date and Time
|
Alignment: |
left
|
-
w
-
specifies the width of the output field.
If necessary, SAS abbreviates the date-time value to fit the format width.
Default: |
32 |
Range: |
16-200 |
The NLDATMAPw. format is
similar to DATEAMPMw. except that the NLDATMAPw. format is locale-specific.
These examples use the input value of 1361709583, which is the SAS date-time
value that corresponds to 12:39:43 p.m. on February 24, 2003.
Statements |
Results |
|
----+----1----+----2----+----3
|
options locale=English_UnitedStates;
put event nldatmap.;
|
February 24, 2003 12:39:43 PM
|
options locale=Spanish_Mexico;
put event nldatmap.;
|
24 de febrero de 2003 12:39:43 PM
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.