Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
NavinReddy
Creator II
Creator II

Now and today

Hi All,

i want to know which one should faster Now() or Today()

Could some one help me Why?

Thanks in Advance

Niranjan

1 Solution

Accepted Solutions
swuehl
MVP
MVP

What do you mean with 'faster'?

Please note the optional timer mode argument to both functions, avoid timer mode 1 in chart objects for performance reason:

now([ timer_mode])

Returns a timestamp of the current time from the system clock. The timer_mode may have the following values:

0 Time at previously finished reload (not currently ongoing reload)
1 Time at function call
2 Time when the document was opened  

Default timer_mode is 1. The timer_mode = 1 should be used with caution, since it polls the operating system every second and hence could slow down the system.

today([timer_mode] )

Returns the current date from the system clock. The timer_mode may have the following values:

0 Date at script run
1 Date at function call
2 Date when the document was opened  

Default timer_mode is 2. The timer_mode = 1 should be used with caution, since it polls the operating system every second and hence could slow down the system.

View solution in original post

5 Replies
Gysbert_Wassenaar

If you don't need the time then you use today(). If you need the date and the current time you use now().


talk is cheap, supply exceeds demand
Not applicable

Now() and today() will return different values.

Now will return the time stamp and today will return the date.

based on the timer Mode the values will differ.

Thanks,

Sampath

NavinReddy
Creator II
Creator II
Author

Hi Gysbert Thanks for your replay

swuehl
MVP
MVP

What do you mean with 'faster'?

Please note the optional timer mode argument to both functions, avoid timer mode 1 in chart objects for performance reason:

now([ timer_mode])

Returns a timestamp of the current time from the system clock. The timer_mode may have the following values:

0 Time at previously finished reload (not currently ongoing reload)
1 Time at function call
2 Time when the document was opened  

Default timer_mode is 1. The timer_mode = 1 should be used with caution, since it polls the operating system every second and hence could slow down the system.

today([timer_mode] )

Returns the current date from the system clock. The timer_mode may have the following values:

0 Date at script run
1 Date at function call
2 Date when the document was opened  

Default timer_mode is 2. The timer_mode = 1 should be used with caution, since it polls the operating system every second and hence could slow down the system.

NavinReddy
Creator II
Creator II
Author

HI Swuehl thank you so much