Added optional formatting to .time function.