PDA

Click to See Complete Forum and Search --> : Epoch Time


staskied
Jan 24th, 2000, 12:39 AM
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

DiGiTaIErRoR
Jan 24th, 2000, 02:37 AM
Epoch from what date? DUH!

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

MartinLiss
Jan 24th, 2000, 04:18 AM
What is epoch time? can you give an example?

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

Aaron Young
Jan 24th, 2000, 04:47 AM
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
aarony@redwingsoftware.com
ajyoung@pressenter.com