DATE$ function - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: DATE$ function (/showthread.php?tid=2060) |
RE: DATE$ function - PhilOfPerth - 10-26-2023 (10-26-2023, 12:27 AM)Kernelpanic Wrote: Reminds me of local forums where people kept popping up and wanting advice on how to turn off or delete this and that in order to save storage space - for hard drives with a terabyte or more. An oldy, but for what it's worth: x denotes the unknown; Spurt is a drip under pressure. RE: DATE$ function - eoredson - 10-27-2023 Maximum int64 seconds in years: Code: (Select All) Dim y As _Integer64 RE: DATE$ function - SMcNeill - 10-27-2023 (10-27-2023, 11:04 PM)eoredson Wrote: Maximum int64 seconds in years: Your number is wrong. 292,277,026,596 <-- Your number of years. 292,471,208,677 <-- Max number of years, stored as seconds, without overflowing. Code: (Select All)
This is a simple case of division. Why's it so hard to get the correct answer here? Am I missing something? RE: DATE$ function - eoredson - 10-27-2023 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_formatting_and_storage_bugs#Year_292,277,026,596 Erik. RE: DATE$ function - SMcNeill - 10-28-2023 (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. 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)
RE: DATE$ function - eoredson - 10-28-2023 Ok, that works. Thanks. Erik. |