Is there an API call or vb function that can retrieve the Unix Time?
I've only found c++ libraries that have it available...
You can use the Format() function.
Example:
Format$(MyTime,"hh:mm:ss")
Unix time is the number seconds since Jan 1st, 1970 Midnight
Oh, gah. WebBot requires that time (IIRC). You have to write your own function for it.
Its something like DateDiff( Now, "s", #1/1/1970# )
The difference in seconds between now and January 1st 1970
What format does "now" return the time as? If it's nanoseconds since 1700 or whatever, I have a function that will convert that to seconds since 1970 that I can post.
Quote from: Telos on April 07, 2004, 07:48 AM
Its something like DateDiff( Now, "s", #1/1/1970# )
The difference in seconds between now and January 1st 1970
DateDiff("s", #1/1/1970#, Now)
Thanks, I didnt know there was such a vb function...
Unix Time is the amount of seconds since Jan 1st, 1970 GMT.
If the computer using DateDiff("s", #1/1/1970#, Now) is not in GMT timezone, the timestamp will be off by some hours.