mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 13:44:26 +02:00
Updated Examples and Recipes (markdown)
@@ -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();
|
||||||
|
Reference in New Issue
Block a user