~ruther/simple-clock

ref: 994a92fe69cfc8bbe5ebd05303695c8cf877eb7c simple-clock/source/src/calendar.rs -rw-r--r-- 8.3 KiB
994a92fe — František Boháček 2 years ago
chore(src): format with cargo-fmt
b9273875 — František Boháček 2 years ago
feat(src): add meaningful message to panic in Calendar::days_in_month
2efb21b5 — František Boháček 2 years ago
feat(src): add calendar freezing possibility
4a0e2e85 — František Boháček 2 years ago
feat(src): add setter methods for Calendar

Allows to change the current date of
already existing calendar.
86dd835a — František Boháček 2 years ago
feat(src): implement Calendar::from_ticks for arbitrary year, add Calendar::to_ticks

So far, Calendar::from_ticks could not correctly parse
other month than the base month, this commit fixes that.

Calendar::to_ticks may convert any Calendar date to seconds passed from
the base year. The base year is remembered in Calendar instance.
9a82d5ee — František Boháček 2 years ago
chore(src): move source to source/ folder
d9c5680c — František Boháček 2 years ago
feat(src): add app state with calendar