Add some commit functions

New functions: message-encoding commit-time commit-time-offset.