mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
ISSUE#1877 Calendar week numbers
1. Let's do code simplier 2. Week format using regexp. Needs when user provide additional characters in format string and need to align week days according 3. Week format has got default formats: ":%U",":%V" 4. Week number is based on the first day of the week now. The output is the same as of date library now. 5. Avoiding of unnecessary operations
This commit is contained in:
@ -33,6 +33,8 @@ class Clock : public ALabel {
|
||||
|
||||
bool handleScroll(GdkEventScroll* e);
|
||||
|
||||
std::string weeks_format_;
|
||||
int weeks_format_left_gaps{0};
|
||||
auto calendar_text(const waybar_time& wtime) -> std::string;
|
||||
auto weekdays_header(const date::weekday& first_dow, std::ostream& os) -> void;
|
||||
auto first_day_of_week() -> date::weekday;
|
||||
|
Reference in New Issue
Block a user