JULDATE7 Function


Returns a seven-digit Julian date from a SAS date value

Category: Date and Time

Syntax

JULDATE7 ( date )

Arguments

date

  • specifies a SAS date value.

Details

The JULDATE7 function returns a seven digit Julian date from a SAS date value. The first four digits represent the year, and the next three digits represent the day of the year.

Comparisons

The function JULDATE7 is similar to JULDATE except that JULDATE7 always returns a four digit year. Thus JULDATE7 is year 2000 compliant because it eliminates the need to consider the implications of a two digit year.

Examples

The following SAS statements produce these results:

SAS Statements

Results

julian=juldate7('31dec96'd);

1996366

julian=juldate7('01jan2099'd);

2099001

See Also

Function:

  • 'JULDATE Function' on page 614




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net