mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 21:54:27 +02:00
"Signed" my examples
@@ -1,3 +1,5 @@
|
||||
This page contains examples and recipes contributed by community members.
|
||||
|
||||
##Contents
|
||||
- [Obtaining a `time_point` from `y/m/d h:m:s` components](#time_point_to_components)
|
||||
- [Obtaining `y/m/d h:m:s` components from a `time_point`](#components_to_time_point)
|
||||
@@ -6,6 +8,8 @@
|
||||
|
||||
<a name="time_point_to_components"></a>
|
||||
### Obtaining a `time_point` from `y/m/d h:m:s` components
|
||||
(by [ecorm](https://github.com/ecorm))
|
||||
|
||||
See http://stackoverflow.com/questions/31711782.
|
||||
|
||||
```c++
|
||||
@@ -22,6 +26,7 @@ system_clock::time_point = day_point(ymd) +
|
||||
|
||||
<a name="components_to_time_point">
|
||||
### Obtaining `y/m/d h:m:s` components from a `time_point`
|
||||
(by [ecorm](https://github.com/ecorm))
|
||||
|
||||
```c++
|
||||
using namespace date;
|
||||
|
Reference in New Issue
Block a user