Assigning Date$/Time$ does not wotk - 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: Assigning Date$/Time$ does not wotk (/showthread.php?tid=3010) Pages:
1
2
|
RE: Assigning Date$/Time$ does not wotk - SMcNeill - 09-08-2024 (09-08-2024, 03:42 PM)Pete Wrote: Windows really cracks me up. So I go into the time settings. The sync has always been on, but get this. The last time the clock was synced was in October, 2019! They do. It sounds like you need to fix your registry values: If you go into the registry, hunt for: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\W32Time\TimeProviders\NtpClient. Right click on the SpecialPollInterval key, then click Modify. That's the time -- in seconds -- between when syncing happens. You can set the date for 01-01-0001, and it won't matter. In XXXXX number of seconds, you'll sync and reset the time, or else a vast majority of windows based software won't work properly anymore. RE: Assigning Date$/Time$ does not wotk - bplus - 09-08-2024 (09-07-2024, 03:54 AM)eoredson Wrote: Hi, Wouldn't Date if there was a Sub to change it, have to be changed like this: Date "09/10/2024" not Date$ = "09/10/2024" RE: Assigning Date$/Time$ does not wotk - eoredson - 09-08-2024 Quote:Wouldn't Date if there was a Sub to change it, have to be changed like this:Nope.. Displays a syntax error. Unless you mean: Code: (Select All)
RE: Assigning Date$/Time$ does not wotk - eoredson - 09-08-2024 (09-07-2024, 05:54 AM)TerryRitchie Wrote: ??? This code is magic trickery written by a programming wizard : ME! It involves smoke and mirrors. Plus ropes and pulleys. I just sat down and typed it in. RE: Assigning Date$/Time$ does not wotk - eoredson - 09-10-2024 Quote:This post has been deleted.Really. RE: Assigning Date$/Time$ does not wotk - eoredson - 09-13-2024 (09-07-2024, 05:30 AM)SMcNeill Wrote: Problem solved. It works! Yay!It appears as such if you roll the time forward for example: If the time is 23:00:00 and if you set it to 23:10:00 it works, but if you roll it backwards to say 22:00:00 it hangs and I don't know why!? Erik. Try this instead: |