This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
programming:cpp:unixtime [2022/05/05 07:46] odagawa ’ |
programming:cpp:unixtime [2022/09/12 08:38] (current) odagawa |
||
---|---|---|---|
Line 14: | Line 14: | ||
// int64_t unixtime_i = 1651736619; // 2022-05-05 16:43:39 | // int64_t unixtime_i = 1651736619; // 2022-05-05 16:43:39 | ||
- | // time_t now = (time_t)unixttime_t; | + | // time_t now = (time_t)unixtime_t; |
| | ||
time_t now = std:: | time_t now = std:: | ||
- | tm *tm_event = localtime(& | + | tm *tm_event = localtime(& |
| | ||
int year = tm_event-> | int year = tm_event-> | ||
Line 47: | Line 47: | ||
}; | }; | ||
</ | </ | ||
+ | |||
+ | [[https:// |