エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
メモ: 2038年問題の例 - Qiita
#include <time.h> #include <stdio.h> int main() { time_t test; time(&test); printf("今年は:%ld\n... #include <time.h> #include <stdio.h> int main() { time_t test; time(&test); printf("今年は:%ld\n", (1970 + test/3600/24/365)); test += 17*365*24*3600; printf("17年後は:%ld\n", (1970 + test/3600/24/365)); test += 1*365*24*3600; printf("18年後は:%ld\n", (1970 + test/3600/24/365)); return 0; }
2024/04/28 リンク