mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 12:44:27 +02:00
Updated Examples and Recipes (markdown)
@@ -111,7 +111,7 @@ Let's say you want to find out how many hours ahead Sydney is from LA (now). Fi
|
||||
Because we did not specify otherwise, the default behavior is to give us the full precision of `system_clock::time_point`. If you would prefer other behavior (e.g. minutes precision), that is easily accomplished with just a little more work:
|
||||
|
||||
```c++
|
||||
std::cout << date::format("%H:%M\n", sy.get_local_time() - la.get_local_time());
|
||||
std::cout << date::format("%H:%M\n", sy.get_local_time() - la.get_local_time());
|
||||
```
|
||||
|
||||
And now the output is:
|
||||
|
Reference in New Issue
Block a user