Revert "add timestamp to short time"

This reverts commit 1be50d83dcecb8a5609df3f0b2bd78fad1087f6e.

Conflicts:
	homeassistant/util/dt.py
This commit is contained in:
Fabian Affolter 2015-06-01 14:02:27 +02:00
parent 84c7149f0f
commit 4292c1f207

View File

@ -109,15 +109,6 @@ def str_to_datetime(dt_str):
return None
def timestamp_to_short_time_str(timestamp):
""" Converts a UNIX timestamp to a short time string format.
@rtype: str
"""
return dt.datetime.fromtimestamp(
int(timestamp)).strftime(TIME_SHORT_STR_FORMAT)
def strip_microseconds(dattim):
""" Returns a copy of dattime object but with microsecond set to 0. """
return dattim.replace(microsecond=0)