mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-07 06:34:27 +02:00
Updated Boost datetime Examples Translated (markdown)
@@ -27,16 +27,16 @@ look if ported to this library.
|
|||||||
|
|
||||||
<a name="Dates_as_Strings"></a>
|
<a name="Dates_as_Strings"></a>
|
||||||
### Dates as String
|
### Dates as String
|
||||||
|
```c++
|
||||||
|
#include "date.h"
|
||||||
|
#include <cassert>
|
||||||
|
#include <iostream>
|
||||||
|
#include <sstream>
|
||||||
|
#include <exception>
|
||||||
|
|
||||||
#include "date.h"
|
int
|
||||||
#include <cassert>
|
main()
|
||||||
#include <iostream>
|
{
|
||||||
#include <sstream>
|
|
||||||
#include <exception>
|
|
||||||
|
|
||||||
int
|
|
||||||
main()
|
|
||||||
{
|
|
||||||
using namespace date;
|
using namespace date;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
try
|
try
|
||||||
@@ -68,8 +68,8 @@ look if ported to this library.
|
|||||||
{
|
{
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
<a name="Days_Alive"></a>
|
<a name="Days_Alive"></a>
|
||||||
### Days Alive
|
### Days Alive
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user