Updated Examples and Recipes (markdown)

bandzaw
2018-03-19 23:15:40 +01:00
parent 970908b0b0
commit f8463a3749

@@ -2384,7 +2384,7 @@ It isn't the most friendly code to have to write. But on the other hand, it giv
More complex (and expensive) policies could track reference count usage for each tzdb and delete only when that reference count drops to zero. It is completely implementable externally without any privileged hooks into `"tz.h"`. This design is motivated by the "don't pay for what you don't use" philosophy.
<a name="unixtime2yearmonthday"></a>
### The current local time
### Converting from Unix Time to date::year_month_day
(by [tommy bandzaw](https://github.com/bandzaw))
When working with APIs that gives you a timestamp as a plain integer, signed or not, for example a Unix Time, and you want to use it with chrono/date/time calculations, here's what one can do (instead of using the time_t & localtime):