DateTime compatibility methods

Discussion in 'Basic4ppc Wishlist' started by berndgoedecke, Aug 31, 2008.

  1. berndgoedecke

    berndgoedecke Active Member Licensed User

    Is it possible to iintegrate DateTime compatibility methods like in VB.Net.
    There is the .ToOADate()- and the .FromOADate()-Method to convert from Ticks to a Double formated Date and the reversal.

    Best regards

  2. Cableguy

    Cableguy Expert Licensed User

    I believe that's already( as it always was) possile using DATEParse, wich converts adate to the tick, and DATE wich converts o a date a numbe of ticks, formated by the DATEFORMAT....
  3. agraham

    agraham Expert Licensed User

  4. berndgoedecke

    berndgoedecke Active Member Licensed User

    You are right agraham,but isn't it faster to use the VB.Net methods, implemented in a dll ??
  5. agraham

    agraham Expert Licensed User

    It might seem surprising but probably not in an optimised compiled app, especially for FromOADate() which is one multiply and one add. There is the overhead of a library call and a further call in the library to the .NET functions and the variables need the same processing whether they are passed to a library or merely prepared for B4ppc computation.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice