Results 1 to 4 of 4

Thread: Epoch Time

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Location
    Grand Rapids, MI US
    Posts
    7

    Post

    I need to be able to convert a regular date 01/20/2000 into Epoch time. Does anyone know the code to do this, or a place I can find a dll that I can call from by VB app?

    Thanks,
    David

  2. #2
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    Post

    Epoch from what date? DUH!

    ------------------
    DiGiTaIErRoR

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    What is epoch time? can you give an example?

    ------------------
    Marty
    Why is it called lipstick if you can still move your lips?

  4. #4
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Epoch Time is the Number of Seconds since Midnight of a Start Date, usually 01/01/1970, so you should just be able to use the DateDiff() Function, ie.

    lEpochTime = DateDiff("s", #1-Jan-1970#, Now)


    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


Posting Permissions

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



Click Here to Expand Forum to Full Width