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