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