Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /proc/thread-self/root/usr/local/lib/python3.8/dist-packages/chronometry/time/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : //proc/thread-self/root/usr/local/lib/python3.8/dist-packages/chronometry/time/convert.py

SECONDS_IN_A_DAY = 60.0 * 60.0 * 24.0


def convert(delta, to_unit='timedelta'):
	u = to_unit[0].lower()
	if u == 't':
		return delta

	# microsecond
	elif to_unit[:2] == 'us' or to_unit[:3] == 'mic':
		return delta.days*SECONDS_IN_A_DAY*1e6 + delta.seconds*1e6 + delta.microseconds

	# millisecond
	elif to_unit[:2] == 'ms' or to_unit[:3] == 'mil':
		return delta.days*SECONDS_IN_A_DAY*1e3 + delta.seconds*1e3 + delta.microseconds / 1E3

	# second
	elif u == 's':
		return delta.days*SECONDS_IN_A_DAY + delta.seconds + delta.microseconds / 1E6

	# minute
	elif to_unit[:3] == 'min':
		return (delta.days*SECONDS_IN_A_DAY + delta.seconds + delta.microseconds / 1E6) / 60

	# hour
	elif u == 'h':
		return (delta.days*SECONDS_IN_A_DAY + delta.seconds + delta.microseconds / 1E6) / 3600

	# day
	elif u == 'd':
		return delta.days + delta.seconds/SECONDS_IN_A_DAY + delta.microseconds / 1E6 / SECONDS_IN_A_DAY

	else:
		raise ValueError(f'Cannot convert time delta to {to_unit}')

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net