I've been learning Dart, but I don't know how to generate a timestamp. I have tried this:
void main() {
print((new Date()).millisecondsSinceEpoch);
}
Thanks to the IDE I was able to get this far, but I'm getting a confusing error:
Exception: No such method: 'Date'
Help?