timedated: use builtins for integer log and exp