When I posted my question there were 12 days left in September. what about next week, what about next month, ...? In short: I was hoping for something generic. Something like the following:
- CODE: SELECT ALL EXPAND VIEW
vboxdate () {
# Adjust VM BIOS time to a given date
secs=$(date –date "$*" +%s) # convert supplied date to secs, since 1970-01-01
let secs-=$(date +%s) # subtract the date NOW
msecs=$(( $secs * 1000 )) # convert to millis
echo Adjusting time ${msecs}ms
VBoxManage modifyvm Vista -biossystemtimeoffset ${msecs};
}
0 件のコメント:
コメントを投稿