5 Replies Latest reply: Dec 24, 2013 7:50 AM by Niranjan k RSS

    Now and today

    Niranjan k

      Hi All,

       

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

      Could some one help me Why?

       

      Thanks in Advance

      Niranjan

        • Re: Now and today
          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().

          • Re: Now and today
            Sampath Kumar

            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

            • Re: Now and today
              Stefan Wühl

              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.