mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 13:14:26 +02:00
Updated Examples and Recipes (markdown)
@@ -1637,7 +1637,7 @@ Printing out the calendar for an entire year is an interesting exercise. You ca
|
|||||||
First the code, and then a detailed explanation:
|
First the code, and then a detailed explanation:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
#include "date.h"
|
#include "date/date.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -1680,7 +1680,7 @@ print_line_of_calendar_month(std::ostream& os, date::year_month const ym,
|
|||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
// Output weekday names title
|
// Output weekday names title
|
||||||
auto wd = first dow;
|
auto wd = firstdow;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
auto d = format(os.getloc(), "%a", wd);
|
auto d = format(os.getloc(), "%a", wd);
|
||||||
|
Reference in New Issue
Block a user