Author Topic: TIME$ not working correctly  (Read 2588 times)

0 Members and 1 Guest are viewing this topic.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
TIME$ not working correctly
« on: April 02, 2020, 07:38:08 am »
Hi.

Try this:

Code: [Select]
TIME$ = "11:01:32"
PRINT TIME$

Time is not set correctly. Can you please repair it to next QB64 release?



Offline Richard Frost

  • Seasoned Forum Regular
  • Posts: 316
  • Needle nardle noo. - Peter Sellers
    • View Profile
Re: TIME$ not working correctly
« Reply #1 on: April 02, 2020, 07:44:34 am »
I thought TIME$ was a system variable that couldn't be changed, but according to
the documentation it can.   I thought the question was an April 1 joke too.

« Last Edit: April 02, 2020, 07:50:08 am by Richard Frost »
It works better if you plug it in.

FellippeHeitor

  • Guest
Re: TIME$ not working correctly
« Reply #2 on: April 02, 2020, 07:52:49 am »
TIME$ as a statement has not been implemented, only as a function.

DATE$ has been left out as a statement as well.

For more reference: http://www.qb64.org/wiki/Keywords_currently_not_supported_by_QB64

Messing with a system's time nowadays can be disastrous in some scenarios, you should not be attempting it anyway.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: TIME$ not working correctly
« Reply #3 on: April 02, 2020, 08:01:08 am »
Thank you for reply