21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

inweek ( '2006-01-12', '2006-01-20', 0 ) returns false<br />

inweek ( '2006-01-12', '2006-01-14', -1 ) returns false<br />

inweek ( '2006-01-07', '2006-01-14', -1 ) returns true<br />

inweek ( '2006-01-12', '2006-01-09', 0, 3 ) returns false<br />

InWeekToDate (date, basedate , shift [, weekstart])<br />

Examples:<br />

returns true if date lies inside the part of week containing basedate up until and including the last<br />

millisecond of basedate. The week can be offset by shift. Shift is an integer, where the value 0 indicates<br />

the week which contains basedate. Negative values in shift indicate preceding weeks and positive<br />

values indicate succeeding weeks. If you want to work with weeks not starting midnight<br />

between Sunday and Monday, indicate an offset in days in weekstart. This may be given as a real<br />

number indicating days and/or fractions of a day.<br />

inweektodate ( '2006-01-12', '2006-01-12', 0 ) returns true<br />

inweektodate ( '2006-01-12', '2006-01-11', 0 ) returns false<br />

inweektodate ( '2006-01-12', '2006-01-05', -1 ) returns false<br />

InLunarWeek (date, basedate , shift [, weekstart])<br />

Examples:<br />

returns true if date lies inside the lunar week (consecutive 7 day periods starting on January 1st each<br />

year) containing basedate. The lunar week can be offset by shift. Shift is an integer, where the value<br />

0 indicates the lunar week which contains basedate. Negative values in shift indicate preceding lunar<br />

weeks and positive values indicate succeeding lunar weeks. If you want to work with an offset for<br />

the start of the lunar weeks, indicate an offset in days in weekstart. This may be given as a real<br />

number indicating days and/or fractions of a day.<br />

inlunarweek ( '2006-01-12', '2006-01-14', 0 ) returns true<br />

inlunarweek ( '2006-01-12', '2006-01-20', 0 ) returns false<br />

inlunarweek ( '2006-01-12', '2006-01-14', -1 ) returns false<br />

inlunarweek ( '2006-01-07', '2006-01-14', -1 ) returns true<br />

inlunarweek ( '2006-01-11', '2006-01-08', 0, 3 ) returns false<br />

InLunarWeekToDate (date, basedate , shift [, weekstart])<br />

Examples:<br />

returns true if date lies inside the part of lunar week (consecutive 7 day periods starting on January<br />

1st each year) containing basedate up until and including the last millisecond of basedate. The lunar<br />

week can be offset by shift. Shift is an integer, where the value 0 indicates the lunar week which contains<br />

basedate. Negative values in shift indicate preceding lunar weeks and positive values indicate<br />

succeeding lunar weeks. If you want to work with an offset for the start of the lunar weeks, indicate<br />

an offset in days in weekstart. This may be given as a real number indicating days and/or fractions of<br />

a day.<br />

inlunarweektodate ( '2006-01-12', '2006-01-12', 0 ) returns true<br />

inlunarweektodate ( '2006-01-12', '2006-01-11', 0 ) returns false<br />

inlunarweektodate ( '2006-01-12', '2006-01-05', 1 ) returns true<br />

InDay (timestamp, basetimestamp , shift [, daystart])<br />

returns true if timestamp lies inside the day containing basetimestamp. The day can be offset by shift.<br />

Shift is an integer, where the value 0 indicates the day which contains basetimestamp. Negative<br />

values in shift indicate preceding days and positive values indicate succeeding days. If you want to<br />

345

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

Saved successfully!

Ooh no, something went wrong!