def _StrftimeLocal(value, unused_context, args):
    """Convert a timestamp in seconds to a string based on the format string.

  Returns local time.
  """
    time_tuple = time.localtime(value)
    return _StrftimeHelper(args, time_tuple)