NLDATMWw. Format
Converts SAS datetime values to the locale sensitive
datetime string as the day of the week and the datetime.
Category: |
Date and Time |
Alignment: |
left |
Syntax
Syntax Description
- w
-
specifies the width
of the output field. If necessary, SAS abbreviates the day of week
and datetime to fit the format width.
Comparisons
The NLDATMW
w. format is similar to the TWMDY
w. format except that the NLDATMW
w. format is locale-specific.
Example
These examples use the
input value of 1361709583, which is the SAS datetime value that corresponds
to 12:39:43 p.m. on February 24, 2003.
|
|
|
----+----1----+----2----+----3
|
options locale=English_UnitedStates;
x=put(1361709583,nldatmw.);
y=put(1361709583,nldatmw30.);
z=put(1361709583,nldatmw200.);
|
Mon, Feb 24, 2003 12:39:43 PM
Mon, Feb 24, 2003 12:39:43 PM
Monday, February 24, 2003 12:39:43 PM
|
options locale=german_germany;
x=put(1361709583,nldatmw.);
y=put(1361709583,nldatmw30.);
z=put(1361709583,nldatmw200.);
|
Mo, 24. Feb 2003 12.39 Uhr
Mo, 24. Feb 2003 12.39 Uhr
Montag, 24. Februar 2003 12.39 Uhr
|