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

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

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

daystart ( '2006-01-25 16:45', -1 ) returns '2006-01-24 00:00:00' with an underlying<br />

numeric value corresponding to '2006-01-24 00:00:00.000'<br />

daystart ('2006-01-25 16:45', 0, 0.5 ) returns '2006-01-25 12:00:00' with an underlying<br />

numeric value corresponding to '2006-01-25 12:00:00.000'<br />

DayEnd(timestamp [, shift = 0 [, dayoffset = 0]])<br />

Examples:<br />

Returns a value corresponding to a timestamp with the last millisecond of the day contained in timestamp.<br />

The default output format will be the TimestampFormat set in the script. Shift is an integer,<br />

where the value 0 indicates the day which contains date. Negative values in shift indicate preceding<br />

days and positive values indicate succeeding days. If you want to work with days not starting midnight,<br />

indicate an offset in fraction of a day in dayoffset, e.g 0.125 to denote 3am.<br />

dayend ( '2006-01-25 16:45' ) returns '2006-01-25 23:59:59' with an underlying numeric<br />

value corresponding to '2006-01-25 23:59:59.999'<br />

dayend ( '2006-01-25 16:45', -1 ) returns '2006-01-24 23:59:59' with an underlying<br />

numeric value corresponding to '2006-01-24 23:59:59.999'<br />

dayend ('2006-01-25 16:45', 0, 0.5 ) returns '2006-01-26 11:59:59' with an underlying<br />

numeric value corresponding to '2006-01-26 11:59:59.999'<br />

DayName(timestamp [, shift = 0 [, dayoffset = 0]])<br />

Examples:<br />

Returns a display value showing the date with an underlying numeric value corresponding to a timestamp<br />

with the first millisecond of the day containing timestamp. Shift is an integer, where the value 0<br />

indicates the day which contains date. Negative values in shift indicate preceding days and positive<br />

values indicate succeeding days. If you want to work with days not starting midnight, indicate an offset<br />

in fraction of a day in dayoffset, e.g 0.125 to denote 3am.<br />

dayname ( '2006-01-25 16:45' ) returns '2006-01-25' with an underlying numeric value<br />

corresponding to '2006-01-25 00:00:00.000'<br />

dayname ( '2006-01-25 16:45', -1 ) returns '2006-01-24' with an underlying numeric<br />

value corresponding to '2006-01-24 00:00:00.000'<br />

dayname ('2006-01-25 16:45', 0, 0.5 ) returns '2006-01-25' with an underlying<br />

numeric value corresponding to '2006-01-25 12:00:00.000<br />

age(timestamp, date_of_birth)<br />

Examples:<br />

Returns the age at the time of timestamp (in completed years) of somebody born on date_of_birth.<br />

age('2007-01-25', '2005-10-29') returns 1<br />

age('2007-10-29', '2005-10-29') returns 2<br />

networkdays (start:date, end_date {, holiday})<br />

Examples:<br />

Returns the number of working days (Monday-Friday) between and including start_date and end_<br />

date taking into account any optionally listed holidays. All parameters should be valid dates or timestamps.<br />

networkdays ('2007-02-19', '2007-03-01') returns 9<br />

networkdays ('2006-12-18', '2006-12-31', '2006-12-25', '2006-12-26')<br />

returns 8<br />

firstworkdate(end_date, no_of_workdays {, holiday} )<br />

352

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

Saved successfully!

Ooh no, something went wrong!