以下の内容はhttps://blog.systemjp.net/entry/20100219/p1より取得しました。


Cで今日の日付を取得

 #include <time.h>
・・・
  time_t     current;
  struct tm  *local;
  time(&current);                     /* 現在の時刻を取得 */
  local = localtime(&current);        /* 地方時の構造体に変換 */
  // yyyymmdd ってイメージの数字を作る
  long todaynum = (local->tm_year+1900)*10000 + (local->tm_mon+1)*100 + local->tm_mday;

ネタ元




以上の内容はhttps://blog.systemjp.net/entry/20100219/p1より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14