Computer Science Canada

date

Author:  Jas [ Sun May 08, 2005 2:12 pm ]
Post subject:  date

Why doesn't this work?

code:

var today : string
date (today)
put "Greetings!!  The date today is ", today


the error is "Right boun of substring is greater than length of string"

Author:  mike200015 [ Sun May 08, 2005 3:19 pm ]
Post subject: 

it works, i just ran it, and it should work, cuz its straight out of the Turing Help File. Razz
You could also use Time.Date, to display the time and date, so you dont need to declare anything.

Author:  Mazer [ Sun May 08, 2005 3:28 pm ]
Post subject: 

I got the same error as Jas when I tried it. Running on Turing 4.0.1 [k] (under Linux using WINE if that could matter).
But if Time.Date will give you the same result, it'd be easier to stick with that.

Author:  Token [ Sun May 08, 2005 9:26 pm ]
Post subject: 

mm worked for me Laughing

Author:  Jas [ Sun May 08, 2005 9:37 pm ]
Post subject: 

Hopefully it works tomorow at school, my teacher will be pissed if this project crashes!!! Shoting

Author:  Token [ Sun May 08, 2005 9:43 pm ]
Post subject: 

well if it does, explain to him that you got it right from turing source and then use Time.Date in place of the var today.

Author:  MysticVegeta [ Tue May 10, 2005 4:13 pm ]
Post subject: 

Works for me o_O


: