[Gambas-user] bug in function cstr()?

Gianluigi bagonergi at gmail.com
Sun Sep 13 13:26:05 CEST 2020


Il giorno dom 13 set 2020 alle ore 13:03 Angel <angelnunez123 at gmail.com> ha
scritto:

> in the cstr () function with dates it gives me the following results:
>
> Print now               13/09/2020 12:36:21
>
> Print str(now)        13/09/2020 12:36:38
>
> Print cstr(now)      *09/13/2020 10:36:30.929*
>
> Print date              13/09/2020 00:00:00
>
> Print str(date)       13/09/2020 00:00:00
>
> Print cstr(date)     *09/12/2020 22:00:00*
>
> my time zone:  Time zone: Europe/Madrid (CEST, +0200)
>

As you can read here:
http://gambaswiki.org/wiki/lang/print
"The expressions are converted to strings by the Str$ function."

So everything is fine, read here for more information:
http://gambaswiki.org/wiki/doc/date

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20200913/a3876fb9/attachment.htm>


More information about the User mailing list