Reads the time value and uses a.m. and p.m. in the specified locale,
and then converts the time value to the local SAS time value.
- w
-
specifies the width of the input field.
The following example uses 04:24:43 p.m. as the input value.
Statements |
Results |
|
----+----1----+
|
options locale=English_UnitedStates;
y=input('04:24:43 PM',nltimap11.);
put y time.;
|
16:24:43
|
options locale=German_Germany;
y=input('16.24 Uhr',nltimap11.);
put y time.;
|
16:24:43
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.