The following commands work fine for me:
win32 {
BUILD_TIME = $$system("time /T") # no spaces between 'system' command and args.
} else {
BUILD_TIME = $$system("time")
}
message($$BUILD_TIME) # output the current time
Note, that I removed space between $$system
and ("time /T")