18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DATE.CONVERT (DC)<br />

The DATE.CONVERT; command converts dates between date formats.<br />

There are two forms of the DATE.CONVERT; command:<br />

DATE.CONVERT (DC)<br />

$ The complex form performs the conversion and updates either a series of System Data<br />

items, enabling the date to be accessed in various formats, or a single user data item in<br />

a specified format. It can also be used just to perform date editing.<br />

$ The simple form uses the System Data item GLB.TOTAL as either the source or<br />

destination of a relative day number, and offers simple conversion to or from a date.<br />

Note: The recommended form for the DATE.CONVERT; command is the complex<br />

form.<br />

Further details of each form are given in the following subsections.<br />

Complex Form<br />

Description of Use<br />

The complex form of the DATE.CONVERT; command has the following features:<br />

$ Convert the value of a data item in a format you specify, storing the result in a series of<br />

System Data items that have the prefix GLB.DC-.<br />

These System Data items are cleared before the DATE.CONVERT; command is<br />

executed. For a list of the GLB.DC- data items available to you after successful<br />

execution of the complex DATE.CONVERT; command, see Section 2.<br />

$ Modify the result of date conversion, by adding or subtracting a number of days from<br />

the input date value.<br />

$ Convert the value of a data item, into a format you specify, into another data item with<br />

a date format that you specify. (The remaining GLB.DC- items are undefined.)<br />

$ Validate the value of a data item (with EDIT.ONLY; command option). (The GLB.DCitems<br />

are undefined, and GLB.CENTURY is not set.)<br />

$ May set GLB.CENTURY.<br />

Complex DATE.CONVERT; commands set GLB.CENTURY if you entered Y in the DC;<br />

sets GLB.CENTURY field on the Primary Specification Options screen. If you entered<br />

N, GLB.CENTURY is not changed automatically. In LDA, both forms of the<br />

DATE.CONVERT; command set GLB.DC-CC.<br />

Note: If you use historic dates, dates are not adjusted for past changes in the<br />

calendar.<br />

v 1-75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!