NLTIMEw. Informat

Reads the time value in the specified locale, and then converts the time value to the local SAS time value.
Category: Date and Time

Syntax

NLTIMEw.

Syntax Description

w
specifies the width of the input field.
Default:20
Range:10–200

Example

The following example uses 16:24:43 as the input value.
Statements
Results
----+----1----+
options locale=English_UnitedStates;
y=input('16:24:43',nltime.);
put y time.;
16:24:43
options locale=German_Germany;
y=input('16.24 Uhr',nltime.);
put y time.;
16:24:00

See Also

Format: