just use a exprestion.. there just what you want. there will be sevral examples in the help files for just what your wanting to do with rotation based on time.