1. .action{$this_year :=now | date "2006"}
    2. .action{$next_year := add $this_year 1}
    3. .action{$this_year_first :=toDate "2006-01-02" ( nospace (cat $this_year "-01-01"))}
    4. .action{$this_year_last :=toDate "2006-01-02" ( nospace (cat $this_year "-12-31"))}
    5. .action{$next_year_first :=toDate "2006-01-02" ( nospace (cat $next_year "-01-01"))}
    6. .action{/* 1、正数和倒数*/}
    7. .action{$pass := add (div (now.Sub $this_year_first).Hours 24) 1}
    8. .action{$countdown := (div ($next_year_first.Sub now).Hours 24)}
    9. .action{/* 2、统计周数*/}
    10. .action{/* 2.1、已过多少周*/}
    11. .action{$dayDict := dict "Mon" 1 "Tue" 2 "Wed" 3 "Thu" 4 "Fri" 5 "Sat" 6 "Sun" 7}
    12. .action{$firstDay := get $dayDict ($this_year_first | date "Mon")}
    13. .action{$pass_days := div (now.Sub $this_year_first ).Hours 24}
    14. .action{$week := div (add $pass_days $firstDay) 7}
    15. .action{$remain :=mod (add $pass_days $firstDay) 7}
    16. .action{if not (eq $remain 0)}
    17. .action{$week = add $week 1}
    18. .action{end}
    19. .action{/* 2.2、已过多少周*/}
    20. .action{$all_days := div ($this_year_last.Sub $this_year_first ).Hours 24}
    21. .action{$all_week := div (add $all_days $firstDay) 7}
    22. .action{$remain :=mod (add $all_days $firstDay) 7}
    23. .action{if not (eq $remain 0)}
    24. .action{$all_week = add $all_week 1}
    25. .action{end}
    26. .action{/* 2.2、倒数日*/}
    27. .action{$hurry_date := "2022-05-08"}
    28. .action{$hurry_countdown := add (div ((toDate "2006-01-02" $hurry_date).Sub now).Hours 24) 1}
    29. # .action{ now | date "2006.01.02 Mon"} 🌞 ?分 ?
    30. > 今年已过了 .action{$pass} 天(第 .action{$week} 周/共 .action{$all_week} 周),距离 .action{$next_year} 年还有 .action{$countdown} 天。
    31. > 距离 .action{$hurry_date} 交论文还有 .action{$hurry_countdown} 天。
    32. > 🗓️Weather:🌞🌥☁️⛈🌧🌦🌈🌪🌀⚡❄️🔥🥶🌊🌫
    33. > 🏠Location 湖北省武汉市
    34. > 🛌Sleep:?
    35. {{{col
    36. {{{row
    37. ## ⏰Must-To-Do
    38. * [ ]
    39. }}}
    40. {: style="width: 40%; flex: 0 0 auto;"}
    41. {{{row
    42. ## 🚀️进展
    43. - [毕设](siyuan://blocks/20220214081633-0ys8z10):
    44. - [复旦](siyuan://blocks/20211206200739-tuj7fp7):
    45. - [尤克里里](siyuan://blocks/20220309110412-2nxymsz):
    46. - 健康与锻炼:
    47. - 其他笔记:
    48. - 遇见:
    49. }}}
    50. }}}
    51. {{{col
    52. {{{row
    53. ## 🐣Mini-Habits
    54. * [ ] [记录睡眠时间](siyuan://blocks/20210827100508-3mkmbeu)
    55. * [ ] [周打卡](siyuan://blocks/20210830231007-w7cvvku)
    56. * [ ] [2022愿望清单](siyuan://blocks/20220107150030-vrjys3w)
    57. * [ ] 每天拍一张照
    58. * [ ] 每天录下自己的声音
    59. * [ ] 每日记账
    60. * [ ] 回顾昨天
    61. * [ ] 每天730
    62. * [ ] 微软日历记事
    63. * [ ] [每日反省](siyuan://blocks/20220423113423-9044etu)
    64. * [ ] [随机复习](siyuan://blocks/20210722172300-eiqyduh)
    65. }}}
    66. {: style="width: 40%; flex: 0 0 auto;"}
    67. {{{row
    68. ## 🧠今日反省
    69. }}}
    70. }}}
    71. ---
    72. # 随机复习
    73. {{SELECT * FROM blocks where type = 'd' ORDER BY random() LIMIT 1}}