mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-06 14:14:27 +02:00
Updated Boost datetime Examples Translated (markdown)
@@ -153,7 +153,7 @@ main()
|
||||
```
|
||||
<a name="Localization_Demonstration"></a>
|
||||
### Localization Demonstration
|
||||
|
||||
```c++
|
||||
#include "date.h"
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
@@ -195,9 +195,9 @@ main()
|
||||
<< '/' << d1.year() << '\n';
|
||||
cout << d1.year() << '-' << d1.month() << '-' << d1.day() << '\n';
|
||||
}
|
||||
|
||||
```
|
||||
If your OS supports the `std::locale("de_DE")` the above can be simplified to:
|
||||
|
||||
```c++
|
||||
#include "date.h"
|
||||
#include "tz.h"
|
||||
#include <iostream>
|
||||
@@ -218,7 +218,7 @@ If your OS supports the `std::locale("de_DE")` the above can be simplified to:
|
||||
cout << format(loc, "%D\n", local_days{d1});
|
||||
cout << format(loc, "%F\n", local_days{d1});
|
||||
}
|
||||
|
||||
```
|
||||
<a name="Date_Period_Calculations"></a>
|
||||
### Date Period Calculations
|
||||
|
||||
|
Reference in New Issue
Block a user