11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

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.

Math and Time FunctionsValue123456MeaningRepresent 20th century dates with two-digit years and all other dates withfour-digit years, regardless of any sliding temporal window in effect.Represent all dates with two-digit years, regardless of any sliding temporalwindow in effect. All dates are assumed to be in the 20th century. Becausethis option deletes two digits from four-digit years, its use results in anonreversible loss of century information. (This loss may be trivial if all datesare in the same century).Represent with two-digit years those dates falling within the sliding temporalwindow defined by startwin and (optionally) endwin. Represent all other dateswith four-digit years.When yearopt=3, startwin and endwin are absolute datesin $HOROLOG format.Represent all dates with four-digit years. Dates input with two- digit years arerejected as invalid.Represent with two-digit years all dates falling within the sliding temporalwindow defined by startwin and (optionally) endwin. Represent all other dateswith four-digit years. When yearopt=5, startwin and endwin are relative years.Represent all dates in the current century with two-digit years and all otherdates with four-digit years.startwinA numeric value that specifies the start of the sliding window during which dates must berepresented with two-digit years. You must supply startwin when you use a yearopt of 3 or5.startwin is not valid with any other yearopt values.When yearopt=3, startwin is an absolute date in $HOROLOG date format that indicates thestart date of the sliding window.When yearopt= 5, startwin is a numeric value that indicates the start year of the sliding windowexpressed in the number of years before the current year. The sliding window always beginson the first day of the year (January 1) specified in startwin.endwinA numeric value that specifies the end of the sliding window during which dates are representedwith two-digit years. You may optionally supply endwin when yearopt is 3 or 5. endwinis not valid with any other yearopt values.When yearopt=3, endwin is an absolute date in $HOROLOG date format that indicates theend date of the sliding window.338 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!