Skip to content

Commit

Permalink
improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1go committed Nov 1, 2021
1 parent 0dfc085 commit f6b2324
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def __post_init__(self, genesis_time: datetime):
start_from_now = (self.start_time - datetime.now().astimezone()).total_seconds()

if start_from_now > 0:
self.start_str = f'{self.start_time.strftime("%Y/%m/%d %H:%M:%S")} ({seconds_to_hms(start_from_now)} from now)'
self.start_str = (
f'{self.start_time.strftime("%Y/%m/%d %H:%M:%S")} ({seconds_to_hms(start_from_now)} from now)'
)

end_time_utc = genesis_time + timedelta(seconds=384 * (self.epoch_number + 256))
self.end_time = end_time_utc.astimezone()
Expand Down

0 comments on commit f6b2324

Please sign in to comment.