[Tutor] Working with dates

Alan Gauld alan.gauld at freenet.co.uk
Sun Oct 17 17:02:04 CEST 2004


> what is different between - and -= ?

- just subtracts

-= also assigns the result

x-y

calculates a value

x -= y

gives x the value of x-y thus it is equivalent to:

x = x-y

There are similar += and *= operators.

HTH,

Alan G


More information about the Tutor mailing list