To be precise you have to be precise and how you do that is up to you.  
However, you should ask yourself what precision do you really need.  No sense 
going overboard for the "tenth" decimal place if you don't need it.
  ----- Original Message ----- 
  From: Markus Witzler 
  To: [email protected] 
  Sent: December 08, 2009 4:13 PM
  Subject: Re: [amibroker] Time between two dates





  Hi wavemechanic,

  I considered DaysSince1900 (). But do I change the result back into years, 
especially when there is a leap year in between?

  Just by dividing by 365 wouldn´t then be correct, right?

  I guess one would need to write a function for this...?

  Thanks

  Markus




    ----- Original Message ----- 
    From: wavemechanic 
    To: [email protected] 
    Sent: Monday, December 07, 2009 2:19 AM
    Subject: Re: [amibroker] Time between two dates


      

    Take a look at DaysSince1900()
      ----- Original Message ----- 
      From: Markus Witzler 
      To: [email protected] 
      Sent: December 06, 2009 3:53 PM
      Subject: [amibroker] Time between two dates


      Hello,

      could someone tell me how to compute the number of days beetween two 
dates?

      The result should be expressed in years, for instance 23.25 years.

      I thought of using datenum but got stuck...

      Thanks

      Markus


      __________ Information from ESET Smart Security, version of virus 
signature database 4665 (20091206) __________

      The message was checked by ESET Smart Security.

      http://www.eset.com




    __________ Information from ESET Smart Security, version of virus signature 
database 4668 (20091207) __________

    The message was checked by ESET Smart Security.

    http://www.eset.com




  

Reply via email to