spitbol / x64

SPITBOL x64 provides raw power and speed for non-numeric computation on the x86_64 architecture
GNU General Public License v3.0
256 stars 23 forks source link

DATE() doesn't work properly #1

Closed sanchopanca closed 7 years ago

sanchopanca commented 8 years ago

It seems like DATE() function doesn't work as expected. Let's assume I have following code:

    OUTPUT = DATE()
END

The result of execution of this program is always the same:

$ spitbol date.spt
01/01/70 04:00:00
$ date
Fri Oct 16 10:33:27 AST 2015

I'm using Linux Mint 17.2 x64

$ uname -a
Linux sanchopanca-N551JM 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

P. S. I'm using prebuilt binary sbl_unix

daveshields commented 7 years ago

Thanks for the note.

RIght you are. I plan to fix it shortly.

thanks, dave

daveshields commented 7 years ago

I have just updated osint/sysdt.c to fix this. This has been tested on Linux, but not yet on OSX.

There was also problem with TIME(), which was always returning the same value. This has been fixed in osint/systm.c