11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Math and Time FunctionsValue3456MeaningRepresent 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.Represent with two-digit years all dates falling within the sliding window definedby startwin and (optionally) endwin. Represent all other dates with four-digityears. 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.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.When yearopt=5, endwin is a numeric value that indicates the end year of the sliding windowexpressed as the number of years past the current year.When yearopt=5, the sliding window always begins on January 1st of the year specified instartwin and ends on December 31st of the year specified in endwin, or of the implied endyear (if you omit endwin).If endwin is omitted or specified as -1, the effective sliding window will be 100 years long.If you supply both startwin and endwin , the sliding window they specify must not have aduration of more than 100 years.350 <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!