Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assigning Date$/Time$ does not wotk
#11
(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!

I'm really surprised the programmers didn't include a feedback loop so at reasonable time intervals the system checks its time with its time servers time when you go online, and sync itself, if necessary.

Decent link to changing your time setting via Windows: https://www.youtube.com/watch?v=9IW1b-fCx2U

Pete

 - If Windows made boats they would sync themselves.

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.
Reply
#12
(09-07-2024, 03:54 AM)eoredson Wrote: Hi,

Its nice that you can now assign values to Date$ and Time$ such as:

Code: (Select All)

x$ = Date$
Print "Current date "; x$
Date$ = "09-10-2024"
Print "New date "; Date$
Date$ = x$
Print "Original date "; Date$

t$ = Time$
Print "Current time "; t$
Time$ = "00:00:00"
Print "New time "; Time$
Time$ = t$
Print "Original time "; Time$
End

But they don't seem to do anything...

Erik.

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"
b = b + ...
Reply
#13
Quote:Wouldn't Date if there was a Sub to change it, have to be changed like this:
Date "09/10/2024"
Nope.. Displays a syntax error.

Unless you mean:

Code: (Select All)

Date "09/10/2024"
End

Sub Date(D$)
Date$ = D$
End Sub
Reply
#14
(09-07-2024, 05:54 AM)TerryRitchie Wrote: ???

Ok, how was this sorcery performed? Dodgy 

???

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. Wink
Reply
#15
Quote:This post has been deleted.
Really.
Reply
#16
(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:


Attached Files
.bas   datetime.bas (Size: 7.65 KB / Downloads: 16)
Reply




Users browsing this thread: 1 Guest(s)