MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / complete_time

Function complete_time

plugins/regix.py:723–742  ·  view source on GitHub ↗
(total_files, files_per_minute=30)

Source from the content-addressed store, hash-verified

721# Ask Doubt on telegram @KingVJ01
722
723async def complete_time(total_files, files_per_minute=30):
724 minutes_required = total_files / files_per_minute
725 seconds_required = minutes_required * 60
726 weeks = seconds_required // (7 * 24 * 60 * 60)
727 days = (seconds_required % (7 * 24 * 60 * 60)) // (24 * 60 * 60)
728 hours = (seconds_required % (24 * 60 * 60)) // (60 * 60)
729 minutes = (seconds_required % (60 * 60)) // 60
730 seconds = seconds_required % 60
731 time_format = ""
732 if weeks > 0:
733 time_format += f"{int(weeks)}w, "
734 if days > 0:
735 time_format += f"{int(days)}d, "
736 if hours > 0:
737 time_format += f"{int(hours)}h, "
738 if minutes > 0:
739 time_format += f"{int(minutes)}m, "
740 if seconds > 0:
741 time_format += f"{int(seconds)}s"
742 return time_format
743
744# Don't Remove Credit Tg - @VJ_Botz
745# Subscribe YouTube Channel For Amazing Bot https://youtube.com/@Tech_VJ

Callers 1

status_msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected