Life

Life

年份开始
January 1, 2020
今年
██████████ 60%
Progress
██████████░░░░░░░░░░ %
⬇️

Code Below

if(prop("Type") == "日",slice("██████████", 10 - round(toNumber(hour(now())) / 24 * 10)) + slice("░░░░░░░░░░", round(toNumber(hour(now())) / 24 * 10)) + " " + format(round(toNumber(hour(now())) / 24 * 100 * 100) / 100) +"% ", if(prop("Type") == "周",slice("██████████", 10 - round(toNumber((day(now()) ? 0 : 7) ? 7 : day(now())) / 7 * 10)) + slice("░░░░░░░░░░", round(toNumber((day(now()) ? 0 : 7) ? 7 : day(now())) / 7 * 10)) + " " + format(round(toNumber((day(now()) ? 0 : 7) ? 7 : day(now())) / 7 * 100 * 100) / 100) + "%",if(prop("Type") == "月",slice("██████████", 10 - round(toNumber(date(now())) / 31 * 10)) + slice("░░░░░░░░░░", round(toNumber(date(now())) / 31 * 10)) + " " + format(round(toNumber(date(now())) / 31 * 100)) + "%",if(prop("Type") == "年",slice("██████████", 10 - round(toNumber(dateBetween(now(), prop("年份开始"), "days") / 365 * 10))) + slice("░░░░░░░░░░", toNumber(dateBetween(now(), prop("年份开始"), "days") / 365 * 10)) + " " + format(round(toNumber(dateBetween(now(), prop("年份开始"), "days")) / 365 * 100 * 100) / 100) + "%", slice("██████████", 10 - round(toNumber(dateBetween(now(), prop("你的出生"), "years")) / 76 * 10)) + slice("░░░░░░░░░░", round(toNumber(dateBetween(now(), prop("你的出生"), "years")) / 76 * 10)) + " " + format(round(toNumber(dateBetween(now(), prop("你的出生"), "years")) / 76 * 10000) / 100) + "%"))))