mirror of
https://github.com/GaMeNu/HFCNotificator.git
synced 2024-11-16 07:14:52 +02:00
update timedelta format (v2.2.5)
This commit is contained in:
parent
fbd7c47a95
commit
7bab483a80
@ -541,7 +541,7 @@ class Notificator(commands.Cog):
|
||||
|
||||
async def execute_bot_info(self, intr):
|
||||
def format_timedelta(timedelta: datetime.timedelta):
|
||||
return f'{timedelta.days} days, {((timedelta.seconds // 3600) % 24)}:{((timedelta.seconds // 60) % 60)}:{(timedelta.seconds % 60)}'
|
||||
return f'{timedelta.days} days, {((timedelta.seconds // 3600) % 24):02}:{((timedelta.seconds // 60) % 60):02}:{(timedelta.seconds % 60):02}'
|
||||
|
||||
curtime = time.time()
|
||||
client_uptime = datetime.timedelta(seconds=int(round(curtime - self.start_time)))
|
||||
|
Loading…
Reference in New Issue
Block a user