QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Petr on April 02, 2020, 07:38:08 am

Title: TIME$ not working correctly
Post by: Petr 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?


Title: Re: TIME$ not working correctly
Post by: Richard Frost 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.

Title: Re: TIME$ not working correctly
Post by: FellippeHeitor 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 (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.
Title: Re: TIME$ not working correctly
Post by: Petr on April 02, 2020, 08:01:08 am
Thank you for reply