10-28-2023, 12:09 AM
(10-27-2023, 11:29 PM)eoredson Wrote:Quote:This is a simple case of division. Why's it so hard to get the correct answer here? Am I missing something?Except for leap years I just know this is what I got from Wikipedia.
https://en.wikipedia.org/wiki/Time_forma...77,026,596
Erik.
So you know where that number came from -- it has nothing to do with whatever you were trying to accomplish and show with your example:
Code: (Select All)
Screen _NewImage(800, 600, 32)
Dim maxInt64 As _Integer64
maxInt64 = 9223372036854775807&&
Print maxInt64; " <== Max INT64"
Print Int(maxInt64 / (86400&& * 365.2425##)); " <== Max number of years." '60 seconds in 60 minutes in 24 hours in 365.2425 days
Print 292277024626 + 1970; " <== Unix time started in 1970, so add 1970"
Print 292277026596; " <== The time from Wiki."