Chapter Contents

Previous

Next
EURDFDTw.d

EURDFDTw.d



Writes international datetime values in the form ddmmmyy:hh:mm:ss.ss or ddmmmyyyy hh:mm:ss.ss

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Examples
See Also

Syntax

EURDFDTw.d

Syntax Description

w
specifies the width of the output field.
Default: 16
Range: 7-40
Tip: If you want to write a SAS datetime value with the date, hour, and seconds, the width of w must be at least 16. Add an additional two places to the width if you want to return values with optional decimal fractions of seconds.

d
optionally specifies the number of digits to the right of the decimal point in the numeric value.
Range: 1-39
Restriction: must be less than w
Restriction: If w - d < 17, SAS truncates the decimal values.


Details

The EURDFDTw. format writes SAS datetime values in the form ddmmmyy:hh:mm:ss.ss, where

dd
is an integer that represents the day of the month.

mmm
is the first three letters of the month name.

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

hh
is the number of hours that range from 00 through 23.

mm
is the number of minutes that range from 00 through 59.

ss.ss
is the number of seconds that range from 00 through 59 with the fraction of a second following the decimal point.

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 may 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= for the list of language prefixes. When you specify the language prefix in the format, SAS ignores the DFLANG= option.


Examples

The example table uses the input value of 1347453583, which is the SAS datetime value that corresponds to September 12, 2002, at 12:39:43 PM. The first PUT statement assumes the DFLANG= system option is set to German.

options dflang=german;
The second PUT statement uses the German language prefix in the format to write the international datetime value in German. The third PUT statement uses the Italian language prefix in the format to write the international datetime value in Italian. The value of the DFLANG= option, therefore, is ignored.

SAS Statements Results

----+----1----+----2
put date eurdfdt20.;
  12Sep2002:12:39:43
put date deudfdt20.;
  12Sep2002:12:39:43
put date itadfdt20.;
  12Set2002:12:39:43


See Also

Formats:

DATEw.
DATETIMEw.d
TIMEw.d

Function:

DATETIME

Informats:

DATEw.
DATETIMEw.
EURDFDTw.
TIMEw.

System Option:
DFLANG=


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.