add localtime sample.