Previous Page | Next Page

Formats for NLS

NLDATMw. Format



Converts a SAS datetime value to the datetime value of the specified locale, and then writes the value as a datetime.
Category: Date and Time
Alignment: left

Syntax
Syntax Description
Comparisons
Examples
See Also

Syntax

NLDATMw.


Syntax Description

w

specifies the width of the output field. If necessary, SAS abbreviates the datetime value to fit the format width.

Default: 30
Range: 10-200

Comparisons

The NLDATMw. format is similar to the DATETIMEw. format except that the NLDATMw. format is locale-specific.


Examples

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.

Statements Results

----+----1----+----2----+----3

options locale=English_UnitedStates;

put day nldatm.;
24Feb03:12:39:43

options locale=German_Germany;

put day nldatm.;
24. Februar 2003 12.39 Uhr


See Also

Formats:

NLDATMAPw. Format

NLDATMTMw. Format

NLDATMWw. Format

Previous Page | Next Page | Top of Page