Add new functions about commit

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