~ruther/simple-clock

ref: main simple-clock/source/src/calendar.rs -rw-r--r-- 8.6 KiB
2960f7a0 — František Boháček 1 year, 10 months ago
feat(src): add clock edit mode

Adds modes for the clock app, that may be
changed. The new mode added is clock edit mode,
that adds support for editing the current clock.
a3e908e9 — František Boháček 1 year, 10 months ago
feat(src): turn off autobrightness adjustment after manual adjustment
994a92fe — František Boháček 1 year, 10 months ago
chore(src): format with cargo-fmt
b9273875 — František Boháček 1 year, 10 months ago
feat(src): add meaningful message to panic in Calendar::days_in_month
2efb21b5 — František Boháček 1 year, 10 months ago
feat(src): add calendar freezing possibility
4a0e2e85 — František Boháček 1 year, 10 months ago
feat(src): add setter methods for Calendar

Allows to change the current date of
already existing calendar.
86dd835a — František Boháček 1 year, 10 months 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 1 year, 10 months ago
chore(src): move source to source/ folder
d9c5680c — František Boháček 1 year, 10 months ago
feat(src): add app state with calendar
Do not follow this link