mirror of https://gitlab.com/pamhyr/pamhyr2
tools: Fix timestamp to pamhyr notation function for Windows.
parent
a9f92637ca
commit
9863b05c30
|
|
@ -252,8 +252,9 @@ def old_pamhyr_date_to_timestamp(date: str):
|
||||||
|
|
||||||
|
|
||||||
def timestamp_to_old_pamhyr_date(time: int):
|
def timestamp_to_old_pamhyr_date(time: int):
|
||||||
|
logger.debug(f"timestamp_to_old_pamhyr_date({time}: {type(time)})")
|
||||||
t0 = datetime.fromtimestamp(0)
|
t0 = datetime.fromtimestamp(0)
|
||||||
t = datetime.fromtimestamp(time)
|
t = datetime.fromtimestamp(int(time))
|
||||||
|
|
||||||
dt = t - t0
|
dt = t - t0
|
||||||
hours = dt.seconds // 3600
|
hours = dt.seconds // 3600
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue