Results 1 to 4 of 4

Thread: Aantal seconden tussen twee DateTime's

  1. #1

    Aantal seconden tussen twee DateTime's

    Hoe kom ik in Delphi 2005 achter het aantal seconden tussen 2 DateTime's? In Delphi 7 had je hier allemaal span functies voor, maar waar vind ik deze in 2005?

    Alvast bedankt.

  2. #2
    mov rax,marcov; push rax marcov's Avatar
    Join Date
    Apr 2004
    Location
    Ehv, Nl
    Posts
    10,357
    Code:
     trunc( (d2-d1)*24*60*60)

  3. #3
    Misschien DateTime1.Substract(DateTime2).TotalSeconds ?

    Substract geeft een struct van TimeSpan en die heeft de property TotalSeconds

  4. #4
    Bedankt link, dat werkt!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Aantal dagen tussen twee datums.
    By Dawetekni in forum Algemeen
    Replies: 15
    Last Post: 16-Dec-06, 15:27
  2. Replies: 11
    Last Post: 22-Mar-04, 19:47
  3. Verschillen tussen twee stukken tekst.
    By GolezTrol in forum Algemeen
    Replies: 7
    Last Post: 11-Dec-03, 11:23
  4. Aantal weken tussen twee data bepalen
    By goldwaf in forum Algemeen
    Replies: 8
    Last Post: 26-Sep-03, 11:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •