There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Does not allow subtraction between Dates
var millis = new Date() - new Date(1970, 0, 1);
generates the following error:
Operator '-' cannot be applied to types 'Date' and 'Date'
I'm not sure the ES specs allow it but the JS engines I've used support this (may be a consequence of Date having a valueOf method).