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 FunctionsWhen yearopt = 3, startwin is an absolute date in $HOROLOG date format that indicatesthe start date of the sliding window.When yearopt = 5, startwin is a numeric value that indicates the start year of the slidingwindow expressed as the number of years before the current year. The sliding window alwaysbegins on January 1st of the year 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.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. The sliding window always ends onDecember 31st of the year specified in endwin. If endwin is not specified, it defaults toDecember 31st of the year 100 years after startwin.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.mindateA numeric value that specifies the lower limit of the range of valid dates. If omitted or specifiedas -1, this limit is obtained from the DateMinimum property of the current locale, whichdefaults to zero (corresponding to December 31, 1840). If mindate is larger than the specifiedhdate, <strong>Caché</strong> generates a error.maxdateA numeric value that specifies the upper limit of the range of valid dates. If omitted or ifspecified as -1, this limit is obtained from the DateMaximum property of the current locale,which defaults to the maximum permissible value for the date portion of $HOROLOG:2980013 (corresponding to December 31, 9999). If maxdate is larger than 2980013, <strong>Caché</strong>generates an error. If maxdate is smaller than the specified hdate,<strong>Caché</strong> generates a error.328 <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!