mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 20:54:27 +02:00
Updated Examples and Recipes (markdown)
@@ -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):
|
||||
|
Reference in New Issue
Block a user