aboutsummaryrefslogtreecommitdiffstats
path: root/modules/daypercentage
blob: 97e5eece1944d193b51d036802b51163effd6548 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env python3

PREFIX = '🔮 '

import datetime

now = datetime.datetime.now()
minutes = now.hour * 60 + now.minute
percentage = round(minutes * 100 / 1440)

print(PREFIX + str(percentage) + "%")