Habit (v0.2.0): local day, streak, reminder, medals #2
Reference in New Issue
Block a user
Delete Branch "feature/habit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Day 2 (v0.2.0) of the core:
liber-habit, plus two events inliber-library.What
liber-habit(pure: time, UTC offset and rollover are parameters):local_day(utc_ms, offset_min, rollover_hour)— the only day computation in Liber; 03:00 rollover by default. A session counts for the day it started.next_reminder(never today when the goal is met; none when off).liber-library:Session.offset_min(optional, so old events still read),Op::HabitGoal(follows the person),Op::MedalSeen(only "seen" is stored). Export round trip includes both.Tests (mandatory, all green; 74 test functions in the workspace)
Self-review