Revert "add timestamp to short time"
This reverts commit 1be50d83dc
.
Conflicts:
homeassistant/util/dt.py
This commit is contained in:
parent
1e5e06fef5
commit
c8111b988e
1 changed files with 0 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue