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.

Example:<br />

weekday( '1971-10-30' ) returns 5.<br />

If the date format used does not correspond to the one set in your operating system, <strong>QlikView</strong> will not be<br />

able to make a correct interpretation. See above under day(date) (page 339).<br />

now([ timer_mode])<br />

Returns a timestamp of the current time from the system clock. The timer_mode may have the following<br />

values:<br />

0 Time at script run<br />

1 Time at function call<br />

2 Time when the document was opened<br />

Default timer_mode is 1. The timer_mode = 1 should be used with caution, since it polls the operating system<br />

every second and hence could slow down the system.<br />

today([timer_mode] )<br />

Returns the current date from the system clock. The timer_mode may have the following values:<br />

0 Date at script run<br />

1 Date at function call<br />

2 Date when the document was opened<br />

Default timer_mode is 2. The timer_mode = 1 should be used with caution, since it polls the operating system<br />

every second and hence could slow down the system.<br />

LocalTime([timezone [, ignoreDST ]])<br />

Returns a timestamp of the current time from the system clock for a specified time zone. The timezone is<br />

specified as a string containing any of the geographical places listed under Time Zone in the Windows Control<br />

Panel for Date and Time or as a string in the form 'GMT+hh:mm'. If no timezone is specified the local<br />

time will be returned. If ignoreDST is -1 (true) daylight savings time will be ignored.<br />

Examples:<br />

localtime ('Paris')<br />

localtime ('GMT+01:00')<br />

localtime ('Paris',-1)<br />

localtime()<br />

MakeDate(YYYY [ , MM [ , DD ] ] )<br />

Returns a date calculated from the year YYYY, the month MM and the day DD.<br />

If no month is stated, 1(January) is assumed.<br />

If no day is stated, 1 (the 1:st) is assumed.<br />

Examples:<br />

makedate(1999) returns 1999-01-01<br />

makedate(99) returns 0099-01-01<br />

makedate(1992,12) returns 1992-12-01<br />

makedate(1999,2,14) returns 1999-02-14<br />

MakeWeekDate(YYYY [ , WW [ , D ] ] )<br />

Returns a date calculated from the year YYYY, the week WW and the day-of-week D.<br />

If no day-of-week is stated, 0 (Monday) is assumed.<br />

Examples:<br />

340<br />

makeweekdate(1999,6,6) returns 1999-02-14

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

Saved successfully!

Ooh no, something went wrong!