Updated Examples and Recipes (markdown)

Tai Meng
2016-11-17 10:35:20 -08:00
parent 4e10f69125
commit 5aebe1b790

@@ -336,6 +336,8 @@ to_time_point(components, tp);
### Obtaining `y/m/d h:m:s` components from a `time_point` ### Obtaining `y/m/d h:m:s` components from a `time_point`
(by [ecorm](https://github.com/ecorm)) (by [ecorm](https://github.com/ecorm))
The first recipe below is based on an example from [Howard Hinnant](https://github.com/HowardHinnant)'s [CppCon 2015 slides](http://schd.ws/hosted_files/cppcon2015/43/hinnant_dates.pdf) on the date library.
```c++ ```c++
using namespace date; using namespace date;
auto time = std::chrono::system_clock::now(); auto time = std::chrono::system_clock::now();