HeHe - I wish - the problem is that you have leap years and also you even have what is called leap seconds. So I defintely need to find the command that does this. So for me to write my own code is no good - I was just hoping somebody knew the command.
Here is an articvle that discuss the problem http://mathforum.org/library/drmath/view/61035.html
- so I calculate the long integer to represent not only the date - but also the hour, minute and seconds. So Not only do I have leap years - I also have what is calleed leap seconds.
The code is shown below - where AAlong is the number of seconds since Jan 1 1980 - and Avar is a variant or date variable.
Code:
Avar = DateAdd("s", AAlng, #1/1/1980#) 'Greenich time
So now I want to take a date/time (i.e. todays date/trime) stamp and convert it to seconds since Jan 1st 1980'
Bookmarks