Previous Page | Next Page

Additional NLS Language Elements

EURDFDTw. Informat



Reads international datetime values in the form ddmmmyy hh:mm:ss.ss or ddmmmyyyy hh:mm:ss.ss.
Category: Date and Time

Syntax
Syntax Description
Details
Examples
See Also

Syntax

EURDFDTw.


Syntax Description

w

specifies the width of the input field.

Default: 18
Range: 13-40

Details

The date values must be in the form ddmmmyy or ddmmmyyyy, followed by a blank or special character, and then the time values as hh:mm:ss.ss. The syntax for the date is represented as follows:

dd

is an integer from 01-31 that represents the day of the month.

mmm

is the first three letters of the month name.

yy or yyyy

is a two-digit or four-digit integer that represents the year.

The syntax for time is represented as follows:
hh

is the number of hours ranging from 00-23,

mm

is the number of minutes ranging from 00-59,

ss.ss

is the number of seconds ranging from 00-59 with the fraction of a second following the decimal point.

The EURDFDTw. informat requires values for both the date and the time; however, the ss.ss portion is optional.

Note:   SAS interprets a two-digit year as belonging to the 100-year span that is defined by the YEARCUTOFF= system option.  [cautionend]

You can set the language for the SAS session with the DFLANG= system option. (Because the SAS Installation Representative usually sets a default language for the site, you might be able to skip this step.) If you work with dates in multiple languages, you can replace the EUR prefix with a language prefix. See DFLANG= System Option: OpenVMS, UNIX, Windows, and z/OS for the list of language prefixes . When you specify the language prefix in the informat, SAS ignores the DFLANG= system option.


Examples

This INPUT statement uses the value of the DFLANG= system option to read the international datetime values in German.

options dflang=german;
input date eurdfdt20.;

This INPUT statement uses the German language prefix to read the international datetime values in German. The value of the DFLANG= option, therefore, is ignored.

input date deudfdt20.;

Values Results

----+----1----+----2
23dez99:10:03:17.2
1261562597.2
23dez1999:10:03:17.2
1261562597.2


See Also

Formats:

DATEw. in SAS Language Reference: Dictionary

DATETIMEw.d in SAS Language Reference: Dictionary

EURDFDTw.d Format

TIMEw.d in SAS Language Reference: Dictionary

Functions:

DATETIME in SAS Language Reference: Dictionary

Informats:

DATETIMEw. in SAS Language Reference: Dictionary

EURDFDEw. Informat

EURDFMYw. Informat

System Options:

DFLANG= System Option: OpenVMS, UNIX, Windows, and z/OS

YEARCUTOFF= in SAS Language Reference: Dictionary

Previous Page | Next Page | Top of Page