add docstring to gen_timestamp method