The ANYDTTME informat
reads input data that corresponds to any of the following informats
or forms.
Informat or Form of
Input
|
|
Informat or Form of
Input
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If the input value is
a time-only value, then SAS assumes a date of 01JAN1960. If the input
value is a date value only, then SAS assumes a time of 12:00 midnight.
It is possible for input
data such as 01-02-03 or 01-02 to be ambiguous with respect to the
month, day, and year. In this case, the DATESTYLE system option indicates
the order of the month, day, and year.
The ANYDTTME informat
uses the following rules when reading colons and periods in time values:
Use of Colons and Periods
|
|
a single colon in the
value h: m indicates hours and minutes
|
|
two colons in the value
h:m:s indicate hours, minutes, and seconds
|
|
a single period in the
value m:s.ff, where ff is a fraction of a second, indicates that the
number preceding the period is the number of seconds
|
|
multiple periods in
the value indicate that the period is a delimiter for dates and the
value is not a time value.
|
|