JULYMD

Purpose:

Converts a series of YYMMDD values to Julian dates.

Syntax:

JULYMD(dtseries, format)

dtseries

-

A series of date/time values.

format

-

Optional. An integer, the year format:

0:

YYMMDD (default)

1:

YYYYMMDD

Returns:

A series or array of Julian integers.

Example:

W1: {980101, 980102, 980103, 980112}

W2: julymd(W1);

W3: xy(W2, {1, 2, 3, 4})

 

W2 contains the series {2450815, 2450816, 2450817, 2450826}. Each value is the Julian representation of the original date/time values of W1. In this case, W1 is specified in YYMMDD format.

Example:

W1: {19980101, 19980102, 19980103, 19980112}

W2: julymd(W1);

W3: xy(W2, {1, 2, 3, 4})

 

Same as the first example, but the date/time format is YYYYMMDD.

Remarks:

JULYMD attempts to recognize the YYYYMMDD and YYMMDD date/time formats and returns a 0 for any date/time values that cannot be converted.

See Also:

DECDATE

DECTIME

DTXY

JULSTR

UNIXDT

XYDT