add strftime() function: use the passed time