mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 21:24:26 +02:00
Updated Examples and Recipes (markdown)
@@ -55,7 +55,7 @@ main()
|
||||
}
|
||||
```
|
||||
|
||||
`system_clock::now()` of course gets the current time. It is a de facto standard that this current time is measured in terms of [Unix Time](https://en.wikipedia.org/wiki/Unix_time) which is a very close approximation to UTC. `make_zoned` pairs the current UTC time with the computer's current local time zone, producing a `zoned_time`. The `zoned_time` has a streaming operator so you can easily print it out:
|
||||
`system_clock::now()` of course gets the current time. It is a de facto standard that this current time is measured in terms of [Unix Time](https://en.wikipedia.org/wiki/Unix_time) which is a very close approximation to UTC. `zoned_time` pairs the current UTC time with the computer's current local time zone. The `zoned_time` has a streaming operator so you can easily print it out:
|
||||
|
||||
```c++
|
||||
2016-07-05 23:01:05.818378 EDT
|
||||
|
Reference in New Issue
Block a user